note 88924 deleted from simplexml.examples by danbrown

From: Date: Fri, 13 Feb 2009 13:55:18 +0000
Subject: note 88924 deleted from simplexml.examples by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150618@lists.php.net to get a copy of this message
Note Submitter: marco dot a dot simao at gmail dot com ---- To david B: You can use variable to call a object property, but if its an array wont work because it will be parsed as part of the string. So, calling something like: $s = 'movie'; $xml->{$s}[0]->plot or just $xml->$s and recursively read the array will work. Cant sure since what version, but im using php 5.2.6

« previous php.notes (#150618) next »