note 47194 rejected from function.simplexml-element-xpath by betz
| From: | betz@php.net | Date: | Fri, 05 Nov 2004 18:07:42 +0000 |
| Subject: | note 47194 rejected from function.simplexml-element-xpath by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80161@lists.php.net to get a copy of this message | ||
Note Submitter: dnldpavlik at yahoo dot com
----
In the example they show:
while(list( , $node) = each($result)) {
echo '/a/b/c: ', $node, "\n";
}
Running this through the Zend Development Environment with the code analyser produces this a bug.
It still runs but if you want to do this a better way with out any issues you can use the follow
code example which does the exact samething, but with no code alerts.
foreach ( $result as $node ) {
echo '/a/b/c: ', $node, "\n";
}