why is the following php code not working:
$string = \"123\"; $search = \"123\"; if(strpos($string,$search)) { echo \"found\"; }else{ echo \"not fou
This is happening because the search string is being found at position 0. Try
if(strpos($string,$search) !== FALSE)
instead of
if(strpos($string,$search))