note 17716 added to function.strpos
| From: | tc at tc dot dk | Date: | Thu, 20 Dec 2001 21:08:57 +0000 |
| Subject: | note 17716 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23411@lists.php.net to get a copy of this message | ||
I've found it easier to check like this:
if (strpos(".".$needle, $haystack)>0)
Works as long as $haystack isn't "."
--
http://www.php.net/manual/en/function.strpos.php
http://master.php.net/manage/user-notes.php?action=edit+17716
http://master.php.net/manage/user-notes.php?action=delete+17716
http://master.php.net/manage/user-notes.php?action=reject+17716