Bienvenue aux célibataires

function lit_xml($fichier,$item,$champs) { if($chaine = @implode("",@file($fichier))) { $tmp = preg_split("/<\/?".$item.">/",$chaine); for($i=1;$i<16;$i+=2) foreach($champs as $champ) { $tmp2 = preg_split("/<\/?".$champ.">/",$tmp[$i]); $tmp3[$i-1][] = @$tmp2[1]; } return $tmp3; } return array(); } $xml = lit_xml("http://www.easy-dating.org/_SCRIPT/xml/search.php?lang=fr§ion=1&sexe=0&pays=FR&age_min=18&age_max=35&photosize=100","item",array("id","login","sexe","pays","nom_departement","ville","photo")); ?>