xml array
$xml_file = simplexml_load_file($_SESSION['config']);if ($xml_file === false || !property_exists($xml_file,'groups')){
die("BAD XML FILE");
}
$iDC = 0;
foreach($xml_file->groups->group as $oGroup){
$oGAtt = $oGroup->attributes();
$iDC++;
echo'<a href="#G'.$iDC.'">'.htmlentities($oGAtt->name).'</a>';
}
i stedet for at blive et link skulle det gerne blive en:
$xml_liste = array('htmlentities($oGAtt->name)' => 'htmlentities($oGAtt->name)'),
eller noget i den stil.