note 88924 added to simplexml.examples

From: Date: Fri, 13 Feb 2009 13:41:50 +0000
Subject: note 88924 added to simplexml.examples
Groups: php.notes 
Request: Send a blank email to php-notes+get-150617@lists.php.net to get a copy of this message
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 ---- Server IP: 200.185.109.13 Probable Submitter: 200.146.45.14 ---- Manual Page -- http://www.php.net/manual/en/simplexml.examples.php Edit -- https://master.php.net/note/edit/88924 Del: integrated -- https://master.php.net/note/delete/88924/integrated Del: useless -- https://master.php.net/note/delete/88924/useless Del: bad code -- https://master.php.net/note/delete/88924/bad+code Del: spam -- https://master.php.net/note/delete/88924/spam Del: non-english -- https://master.php.net/note/delete/88924/non-english Del: in docs -- https://master.php.net/note/delete/88924/in+docs Del: other reasons-- https://master.php.net/note/delete/88924 Reject -- https://master.php.net/note/reject/88924 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#150617) next »