- print_r: documentation ( source)
- array_walk_recursive: documentation ( source)
<?php
$a=array(
'notices' => array(
'a','b','c'
)
);
$xml = new SimpleXMLElement('<root/>');
array_walk_recursive($a, array ($xml, 'addChild'));
//var_dump($xml->nichts->hasChildren());
$b = $xml->nichts->children();
print_r($b->count());
if ($b) {
foreach ($b as $c) {
//n
}
}