note 35288 added to function.date

From: Date: Tue, 26 Aug 2003 16:02:24 +0000
Subject: note 35288 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-55118@lists.php.net to get a copy of this message
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; } } } ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35288 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35288&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35288&report=yes

« previous php.notes (#55118) next »