DomElement->get_attribute_node --
Returns the node of the given attribute
Syntax
domattribute DomElement->get_attribute_node ( string name )
Returns the node of the attribute named name
in the current element. The name parameter is
case sensitive.
If no attribute with given name is found, FALSE is returned.
Example 1. Getting an attribute node
<?php
include("example.inc");
if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; }
$root = $dom->document_element(); if ($attribute = $root->get_attribute_node('language')) { echo 'Language is: ' . $attribute->value() . "\n"; }
?>
Php domelement get attribute node Function syntax tag
domelement get attribute node php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php domelement get attribute node syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.