PHP 8.4.24 Released!

Voting

: seven minus two?
(Example: nine)

The Note You're Voting On

info at fat-fish dot co dot il
19 years ago
a simple version for an array needle (multiply sub-strings):
<?php

function substr_count_array( $haystack, $needle ) {
     $count = 0;
     foreach ($needle as $substring) {
          $count += substr_count( $haystack, $substring);
     }
     return $count;
}
?>

<< Back to user notes page

To Top