note 52682 rejected from ref.simplexml by didou

From: Date: Tue, 16 Jan 2007 00:51:28 +0000
Subject: note 52682 rejected from ref.simplexml by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121766@lists.php.net to get a copy of this message
Note Submitter: cyberlot at cyberlot dot net ---- outping a SimpleXML object is deceptive For example <doc channel="chat"><mess>Hello</mess></doc> print_r returns SimpleXMLElement Object ( [mess] => Hello ) One might assume you are "losing" the attribute of doc BUT echo $object['channel'] Does return the value of chat No xpath /doc/@channel mess needed to access it, Its there you just can't "see" it until you access it directly Everything is there, sometimes you just have to hunt for it.

« previous php.notes (#121766) next »