DOM/DOMXPathNavigator.php
public function MoveToFirstAttribute()
	{
		// If the current node is already an attribute or there are no attributes return false
		if	( is_null( $this->domNode ) || $this->domNode instanceof \DOMAttr || ! $this->domNode->hasAttributes() ) return false;

		$this->domNode = $this->domNode->attributes->item(0);
		return true;
	}
public function MoveToFirstAttribute()
	{
		// If the current node is already an attribute or there are no attributes return false
		if	( is_null( $this->domNode ) || $this->domNode instanceof \DOMAttr || ! $this->domNode->hasAttributes() ) return false;

		$this->domNode = $this->domNode->attributes->item(0);
		return true;
	}
public function MoveToFirstAttribute ( ) { // If the current node is already an attribute or there are no attributes return false
 if ( is_null ( $ this -> domNode ) || $ this -> domNode instanceof \ DOMAttr || ! $ this -> domNode -> hasAttributes ( ) ) return false ; $ this -> domNode = $ this -> domNode -> attributes -> item ( 0 ) ; return true ; }
When overridden in a derived class, moves the XPathNavigator to the first attribute of the current node.

@return bool	Returns true if the XPathNavigator is successful moving to the first attribute of the current node;
otherwise, false. If false, the position of the XPathNavigator is unchanged.
When overridden in a derived class moves the XPathNavigator to the first attribute of the current node .