note 63810 added to ref.simplexml

From: Date: Fri, 31 Mar 2006 15:47:42 +0000
Subject: note 63810 added to ref.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-107083@lists.php.net to get a copy of this message
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. ---- Server IP: 64.71.164.2 Probable Submitter: 72.227.37.184 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.simplexml.php Edit -- http://master.php.net/note/edit/63810 Del: integrated -- http://master.php.net/note/delete/63810/integrated Del: useless -- http://master.php.net/note/delete/63810/useless Del: bad code -- http://master.php.net/note/delete/63810/bad+code Del: spam -- http://master.php.net/note/delete/63810/spam Del: non-english -- http://master.php.net/note/delete/63810/non-english Del: in docs -- http://master.php.net/note/delete/63810/in+docs Del: other reasons-- http://master.php.net/note/delete/63810 Reject -- http://master.php.net/note/reject/63810 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107083) next »