|
PHP5中文手册
DomElement->has_attribute()(No version information available, might be only in CVS) DomElement->has_attribute() — Checks to see if an attribute exists in the current node 说明DomElement
bool 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. 范例
Example#1 Testing the existence of an attribute
<?php Migrating to PHP 5 |