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 comment