note 63810 deleted from ref.simplexml by didou
| From: | didou@php.net | Date: | Tue, 16 Jan 2007 00:53:21 +0000 |
| Subject: | note 63810 deleted from ref.simplexml by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121770@lists.php.net to get a copy of this message | ||
Note Submitter: chad 0x40 herballure 0x2e com
----
It's mentioned in Example 5, but it's counterintuitive, so I'll highlight it here:
attribute values are actually SimpleXMLElement objects and (like actual elements) they need to be
cast to string before use as an array index. Otherwise PHP throws an "Illegal offset type"
warning.