<?php $xml = <<<EOF <child/> </person> </people> EOF; $elem = new SimpleXMLElement($xml); foreach ($elem as $person) { printf("%s has got %d children.\n", $person['name'], $person->count()); } ?>
You have javascript disabled. You will not be able to edit any code.