note 30762 added to function.substr-count

From: Date: Thu, 27 Mar 2003 17:24:20 +0000
Subject: note 30762 added to function.substr-count
Groups: php.notes 
Request: Send a blank email to php-notes+get-45915@lists.php.net to get a copy of this message
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 -- http://www.php.net/manual/en/function.substr-count.php http://master.php.net/manage/user-notes.php?action=edit+30762 http://master.php.net/manage/user-notes.php?action=delete+30762 http://master.php.net/manage/user-notes.php?action=reject+30762

« previous php.notes (#45915) next »