note 39912 added to function.simplexml-element-children

From: Date: Sun, 15 Feb 2004 15:32:16 +0000
Subject: note 39912 added to function.simplexml-element-children
Groups: php.notes 
Request: Send a blank email to php-notes+get-65170@lists.php.net to get a copy of this message
File: <category> <item>text</item> <bold>text</bold> <item>text</item> <item>text</item> <mark>text</mark> <bold>text</bold> </category> If you want to get also names of the tags, you can use this loop layout: foreach($category -> children() as $name => $node){ echo $name.'<br/>'; } ---- Manual Page -- http://www.php.net/manual/en/function.simplexml-element-children.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39912 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39912&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39912&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65170) next »