I am trying to see if the string contains \
and if i put it like this
$search4 = '\';
or like $search4 = "\";
it won't work as this is incorrect.
This is my search function
function Search($search, $string){
$position = strpos($string, $search);
if ($position == true){
return 'true';
}
else{
return 'false';
}}
And i am calling it like that echo Search($search4, $string);