Counting occurrence of a word in a String :: Benchmarking of PHP functions

14 thoughts on “Counting occurrence of a word in a String :: Benchmarking of PHP functions”

  1. Hello,

    This is just to remind that with PHP5 you can use microtime(true) to get a float value at once (hence no need for microtime_float() function)

  2. Pingback: PHPDeveloper.org
  3. Googled for PHP functions relating to counting occurances of text in a string, first valid and accurate result i found was here.

    Info is more then i needed, but it’s nice to see someone who tests the differences, rather then simply saying “Use this way it’s faster”..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s