I wrote this code:
$token="Birth";
$msg="I am awesome and I know it";
if(strpos(strtolower($msg),strtolower($token)) >=0){
echo 'ok';
}
It prints ok
As we can see there is no word like Birth
in the message but still it returns true
. I guess it should return false
as the php manual says.
Any help in this regard,