PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(no version information, might be only in CVS)
This function only returns an array of attributes if the node is of type XML_ELEMENT_NODE.
(PHP >= 4.3 only) If no attributes are found, NULL is returned.