Quote:
Originally Posted by pornmasta
it CAN... yes it can
|
Yeah and when you do a false test with a number, say "-1" then the if statement evals to true when false is returned from stripos.
<?
$string = "ello";
if (stripos($string,'hello') != -1 ) {
echo "True";
}
else {
echo "false";
}
?>
Like I said, the correct way to do it is !== false