note 100278 deleted from simplexml.examples by danbrown
| From: | danbrown@php.net | Date: | Wed, 06 Oct 2010 14:50:30 +0000 |
| Subject: | note 100278 deleted from simplexml.examples by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173020@lists.php.net to get a copy of this message | ||
Note Submitter: MasterOfObvious
----
I wish someone would delete "posthy at NOSPAM dot com"'s post for trolling. Why would
you cast a SimpleXMLElement to a bool and then to a string and then a bool. That's completely
retarded.
To access the value in <root> <value /> </root> in his case would be
$xmlobj->value[0]
See the 0? That's the first element of the child "value".