note 49771 deleted from ref.simplexml by didou

From: Date: Tue, 16 Jan 2007 00:45:41 +0000
Subject: note 49771 deleted from ref.simplexml by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121764@lists.php.net to get a copy of this message
Note Submitter: roland dot swingler at transversal dot com ---- Just a quick note - if you wish to get the name of the tag you are operating on, use the the key bit of foreach, i.e in the example: <?php // Outputs title characters plot rating rating foreach($xml->movie[0]->children() as $tag => $child){ echo $tag; } ?> This might seem obvious but it stumped me for a bit.

« previous php.notes (#121764) next »