note 10877 deleted from function.substr-count by nlopess

From: Date: Mon, 07 Jun 2004 09:36:55 +0000
Subject: note 10877 deleted from function.substr-count by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70476@lists.php.net to get a copy of this message
Note Submitter: hazelnutlatte@hotmail.com ---- Both of the posted functions that are supposed to work with PHP3 don't return the right count if $needle is the first word in $haystack. Workaround (if $haystack is generated dynamically): tack a dummy word onto the beginning of $haystack.

« previous php.notes (#70476) next »