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 line I'm looking for does not exist.
Please help, thanks in advance :))
source share