note 40493 deleted from function.preg-match-all by felipe

From: Date: Sun, 23 Mar 2008 22:58:07 +0000
Subject: note 40493 deleted from function.preg-match-all by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137390@lists.php.net to get a copy of this message
Note Submitter: fabriceb at gmx dot net ---- If you just want to find out how many times a string contains another simple string, don't use preg_match_all like I did before I fould the substr_count function. Use <?php $nrMatches = substr_count ('foobarbar', 'bar'); ?> instead. Hope this helps some other people like me who like to think too complicated :-)

« previous php.notes (#137390) next »