Wondering why the following block of code has no output:
$string = "fdsafs | fdsfdsafs";
if (strstr("|", $string))
{
echo "!";
}
I've tried using chr(124) instead of the pipe character, and I've also tried escaping the pipe in case it can't be used like that. In any case, the echo statement never executes. Any ideas?
$string = "fdsafs | fdsfdsafs";
if (strstr("|", $string))
{
echo "!";
}
I've tried using chr(124) instead of the pipe character, and I've also tried escaping the pipe in case it can't be used like that. In any case, the echo statement never executes. Any ideas?