Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function count_char($str='',$char=''){
- $count=0;
- if(function_exists('mb_substr_count')){
- $count=mb_substr_count($str,$char);
- }
- else{
- $count=substr_count($str,$char);
- }
- return $count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement