note 43247 added to function.stripos
| From: | GattifromBrazil at rn2 dot php dot net | Date: | Tue, 15 Jun 2004 14:31:44 +0000 |
| Subject: | note 43247 added to function.stripos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71102@lists.php.net to get a copy of this message | ||
a function that can be helpul to test if string is in another
function instr($str, $main_str){
//return true if the string $str is in string $main_str
// and false if it isn't
return ( strpos($main_str,$str) === false ) ? false : true;
}
----
Manual Page -- http://www.php.net/manual/en/function.stripos.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43247
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43247&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43247&report=yes
Search -- http://master.php.net/manage/user-notes.php