J'ai un probleme avec un in_array je pense que tout est bon mais cela ne m'affiche rien
Code : Tout sélectionner
$champs = explode (",", $data[0]);
//car $data[0] contient une variable du type (01,02,03,04 etc)
//si je fais un echo $champs[0] j'ai bien Informatique
if (in_array ("Informatique", $champs)) {
$selection1="SELECTED";
print "Trouvé info";
}
echo $selection1; //ne me donne rien