note 33292 added to function.substr-count
| From: | W at rack1 dot php dot net | Date: | Sat, 21 Jun 2003 04:18:33 +0000 |
| Subject: | note 33292 added to function.substr-count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50777@lists.php.net to get a copy of this message | ||
With reference to the "cgcgcgcgcgcgc" example, u can treat the string as a queue and just
pop out the first character in iterations. You will get a return value of 6, thus allowing for
overlapping.
----
Manual Page -- http://www.php.net/manual/en/function.substr-count.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33292
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33292&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33292&report=yes