note 91481 deleted from function.simplexml-element-xpath by danbrown

From: Date: Thu, 11 Jun 2009 22:58:54 +0000
Subject: note 91481 deleted from function.simplexml-element-xpath by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156790@lists.php.net to get a copy of this message
Note Submitter: arealzone-czernobyl at yahoo dot de ---- The simplest way to count nodes in a XML doc: $xml = new SimpleXMLElement($xmlstr); $xmlNode = $xml->xpath('root/yourNodeName'); $nodeCount = count($xmlNode); echo $nodeCount;

« previous php.notes (#156790) next »