note 72314 deleted from function.strpos by colder
| From: | colder@php.net | Date: | Sat, 13 Jan 2007 09:06:47 +0000 |
| Subject: | note 72314 deleted from function.strpos by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-121592@lists.php.net to get a copy of this message | ||
Note Submitter: biraderinbiri at yahoo dot com
----
Am i missing something or is there a bug? VERY SMILAR model of the offical example is NOT working,
below:
<?php
$mystring = 'abc';
$findme = 'a';
$pos = strpos($mystring, $findme);
if ($pos === true)
{
echo "The string '$findme' was found in the string '$mystring'";
}
else
{
echo "The string '$findme' was NOT found in the string '$mystring'";
}
?>
Results NOT found! Oh my God... Is it because of boolean usage of === or true=0 but false is
different, what ever, let you programmers take care because that way is NOT working!?