src/XML/Element.php
public function hasAttribute( $name, $nsPrefix = NULL  )
	{
		$names	= $this->getAttributeNames( $nsPrefix );
		return in_array( $name, $names );
	}
public function hasAttribute( $name, $nsPrefix = NULL  )
	{
		$names	= $this->getAttributeNames( $nsPrefix );
		return in_array( $name, $names );
	}
public function hasAttribute ( $ name , $ nsPrefix = NULL ) { $ names = $ this -> getAttributeNames ( $ nsPrefix ) ; return in_array ( $ name , $ names ) ; }
Indicates whether an attribute is existing by it's name.
@access		public
@param		string		$name		Name of attribute
@param		string		$nsPrefix	Namespace prefix of attribute
@return		bool
Indicates whether an attribute is existing by it s name .