Voting

: min(four, five)?
(Example: nine)

The Note You're Voting On

rex111 at bigmir dot net
8 years ago
Get all tags and their values. (recursive)

<?php
$xml
= simplexml_load_file('settings.xml');

function
all_tag($xml){
$i=0; $name = "";
foreach (
$xml as $k){
$tag = $k->getName();
$tag_value = $xml->$tag;
if (
$name == $tag){ $i++; }
$name = $tag;
echo
$tag .' '.$tag_value[$i].'<br />';
// recursive
all_tag($xml->$tag->children());
}
}

all_tag($xml);
?>

<< Back to user notes page

To Top