/ Published in: PHP
Count occurences of a list of characters in a given string
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function count_occurences($char_string, $haystack){ $character_count = 0; foreach($characters as $character){ } return $character_count; }