note 55315 added to function.stristr
| From: | trojjer at osu1 dot php dot net | Date: | Sat, 30 Jul 2005 00:51:03 +0000 |
| Subject: | note 55315 added to function.stristr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92747@lists.php.net to get a copy of this message | ||
Regarding previous entry about validation:
"Note: If you only want to determine if a particular needle occurs within haystack, use the
faster and less memory intensive function strpos() instead."
You have to use strpos('haystack','needle')!==false though, of course, incase it
returns zero as the actual position, like it says on that page.
----
Submitter IP: 85.116.5.111
----
Manual Page -- http://www.php.net/manual/en/function.stristr.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55315
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55315&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55315&report=yes
Search -- http://master.php.net/manage/user-notes.php