for my purposes I did this:
<?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'";
}
?>
However, it always executes this branch:
echo "The string '$findme' was found in the string '$mystring'";
echo " and exists at position $pos";
although the string I 'm searching for doesn't exist.
Please help, thx in advance :))