Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...

When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store


(PHP 5 >= 5.1.0)

XMLReader::getAttributeNoGet the value of an attribute by index


public string XMLReader::getAttributeNo ( int $index )

Returns the value of an attribute based on its position or an empty string if attribute does not exist or not positioned on an element node.



The position of the attribute.

Return Values

The value of the attribute, or an empty string if no attribute exists at index or not positioned of element.

See Also

PHP Manual