note 93033 added to function.substr-count
| From: | adiulici01 at yahoo dot com | Date: | Thu, 20 Aug 2009 07:50:02 +0000 |
| Subject: | note 93033 added to function.substr-count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-159677@lists.php.net to get a copy of this message | ||
Has anybody noticed this before?
<?php
echo substr_count(";str;str;", ";str;");
?>
It will return 1, not 2.
Is it a bug?
----
Server IP: 69.147.83.197
Probable Submitter: 82.79.48.233
----
Manual Page -- http://www.php.net/manual/en/function.substr-count.php
Edit -- https://master.php.net/note/edit/93033
Del: integrated -- https://master.php.net/note/delete/93033/integrated
Del: useless -- https://master.php.net/note/delete/93033/useless
Del: bad code -- https://master.php.net/note/delete/93033/bad+code
Del: spam -- https://master.php.net/note/delete/93033/spam
Del: non-english -- https://master.php.net/note/delete/93033/non-english
Del: in docs -- https://master.php.net/note/delete/93033/in+docs
Del: other reasons-- https://master.php.net/note/delete/93033
Reject -- https://master.php.net/note/reject/93033
Search -- https://master.php.net/manage/user-notes.php