note 10521 added to substr_count
| From: | Jesse at bend dot com | Date: | Tue, 09 Jan 2001 00:58:57 +0000 |
| Subject: | note 10521 added to substr_count | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9492@lists.php.net to get a copy of this message | ||
I am not certain why the above fellah is worried about case sensitivity, ereg functions are mighty
slow.. and if you need a case insensitive count, try this:
substr_count(strtolower($haystack), strtolower($needle))
http://www.php.net/manual/function.substr-count.php