DomElement::has_attribute(PHP 4 >= 4.1.0) DomElement::has_attribute — Checks to see if an attribute exists in the current node Описание
   bool DomElement::has_attribute
    ( string $name
   ) 
  This functions checks to see if an attribute named name exists in the current node. Список параметров
 
 Возвращаемые значенияReturns TRUE if the asked attribute exists, FALSE otherwise. Примеры
 Пример #1 Testing the existence of an attribute 
<?phpMigrating to PHP 5 | 
||