note 100601 deleted from function.strpos by danbrown

From: Date: Tue, 26 Oct 2010 14:15:30 +0000
Subject: note 100601 deleted from function.strpos by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-173470@lists.php.net to get a copy of this message
Note Submitter: Sebastian ---- To Nikolay Christov: There's a bug in your function, you are using wrong variables in parts of the script. Change $pm to $stack, and $open_link to $needle. However, PHP already provides a lot faster native function called 'substr_count' for the same purpose.

« previous php.notes (#173470) next »