note 50040 deleted from ref.simplexml by nlopess
| From: | nlopess@php.net | Date: | Wed, 16 Feb 2005 20:10:21 +0000 |
| Subject: | note 50040 deleted from ref.simplexml by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85142@lists.php.net to get a copy of this message | ||
Note Submitter: mrik
----
$num = 0;
//1
echo $xml->item[$num]->id;
//2
echo $xml->item[0]->id;
from the example given on this page, //2 will work, while //1 won't display anything, anyone
has an idea why ?