note 35288 deleted from function.date by vincent
| From: | vincent@php.net | Date: | Tue, 26 Aug 2003 16:05:44 +0000 |
| Subject: | note 35288 deleted from function.date by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55119@lists.php.net to get a copy of this message | ||
Note Submitter: vincyee@hotmail.com
----
This is a function, can be used similar like inStr() function in ASP. if you want to find out one
sting is there in another string, you can call this function by passing the 2 strings as paramiters.
In the first string there should be a devider "," and if the second string is there with
in the first string the function will return 1 else return nothing.
function instr($fval,$sval)
{
$arr = Explode(",",$fval);
while(list($IndexValue,$CapitalName) = each($arr))
{
if($CapitalName == $sval)
{
return 1;
exit;
}
}
}