If my string is : aud\\ios, how do i check it out for the presence of \\ in it?
I tried using preg_match(\'\\\\\' , $string) but
I use this function a lot, you can easily check if a string contains
function StringContains($the_string,$contains)
{
return strpos($the_string, $contains) !== FALSE;
}
check it out: http://3v4l.org/LrDBd
of course you have to escape the backslash when calling the function like this
StringContains('aud\ios','\\');