note 100601 added to function.strpos
| From: | Sebastian at osu1 dot php dot net | Date: | Tue, 26 Oct 2010 10:41:36 +0000 |
| Subject: | note 100601 added to function.strpos | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173462@lists.php.net to get a copy of this message | ||
To Nikolay Christov:
There's a bug in your function, you are using wrong variables in parts of the script. Change
$pm to $stack, and $open_link to $needle.
However, PHP already provides a lot faster native function called 'substr_count' for the
same purpose.
----
Server IP: 69.147.83.197
Probable Submitter: 79.134.123.122
----
Manual Page -- http://www.php.net/manual/en/function.strpos.php
Edit -- https://master.php.net/note/edit/100601
Del: integrated -- https://master.php.net/note/delete/100601/integrated
Del: useless -- https://master.php.net/note/delete/100601/useless
Del: bad code -- https://master.php.net/note/delete/100601/bad+code
Del: spam -- https://master.php.net/note/delete/100601/spam
Del: non-english -- https://master.php.net/note/delete/100601/non-english
Del: in docs -- https://master.php.net/note/delete/100601/in+docs
Del: other reasons-- https://master.php.net/note/delete/100601
Reject -- https://master.php.net/note/reject/100601
Search -- https://master.php.net/manage/user-notes.php