je cherche dans la chaine xxx1xxxxx3xxxx4 le needle 4 avec strstr :
if(strstr($prefAff,$nom)== TRUE) { echo 'trouve';}
or cette fonction me retourne FALSE , quelqun pourrait il m expliquer pourquoi ???if(strstr($prefAff,$nom)== TRUE) { echo 'trouve';}
or cette fonction me retourne FALSE , quelqun pourrait il m expliquer pourquoi ???
<?
if(strstr("xxx1xxxxx3xxxx4","4")== TRUE)
echo 'trouve';
// affiche "trouve"
echo strstr("xxx1xxxxx3xxxx4","4");
// affiche "4"
?>
C'est donc ailleurs qu'il faut aller chercher if(strstr("$prefAff","$nom")== TRUE)
maudite quotes