note 81319 deleted from ref.simplexml by danbrown

From: Date: Mon, 18 May 2009 01:14:31 +0000
Subject: note 81319 deleted from ref.simplexml by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155500@lists.php.net to get a copy of this message
Note Submitter: maxim [at] novozhilov dot kiev dot ua ---- As for Jason Sheets <jsheets at shadonet dot com> function - very good function, thanks for work! I've made only some changes in recursion to allow same_nodes_name support, like this one: <node2> <node3> <node4>test</node4> <node4>test1</node4> </node3> <node5/> </node2> this hack allows you to have in array both "node4". Simply remove line: $return[$element] = XMLToArray($value); and add this one (!isset($return[$element])) ? $return[$element] = XMLToArray($value) : $return[$element][] = XMLToArray($value);

« previous php.notes (#155500) next »