note 30762 deleted from function.substr-count by nlopess

From: Date: Tue, 12 Jul 2005 15:11:56 +0000
Subject: note 30762 deleted from function.substr-count by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91815@lists.php.net to get a copy of this message
Note Submitter: chris at pecoraro dot net ---- this function also doesn't work well if you have "cgcgcgcgcgcgcg" as a search string and you want to count occurences of "cgc" it returns "3", whereas it SHOULD return "6", assuming we allow "overlapping". Maybe there should be an "allow overlap" optional parameter. -cjp

« previous php.notes (#91815) next »