pour mes besoins, je l'ai fait:Rechercher si une chaîne existe dans une autre chaîne
<?php
$mystring = 'Gazole,';
$findme = 'Sans Plomb 95';
$pos = strpos($mystring, $findme);
if ($pos >= 0) {
echo "The string '$findme' was found in the string '$mystring'";
echo " and exists at position $pos";
} else {
echo "The string '$findme' was not found in the string '$mystring'";
}
?>
Cependant, il exécute toujours cette branche:
echo "The string '$findme' was found in the string '$mystring'";
echo " and exists at position $pos";
bien que la chaîne que je suis la recherche de n ' t existe.
S'il vous plaît aider, thx à l'avance :))