note 33292 deleted from function.substr-count by nlopess
| From: | nlopess@php.net | Date: | Thu, 23 Jun 2005 19:59:09 +0000 |
| Subject: | note 33292 deleted from function.substr-count by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90855@lists.php.net to get a copy of this message | ||
Note Submitter: W Chee Wee
----
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.