Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function f1($ch)
- {
- $res = array();
- for(int $i=0; $<strlen($ch);$i++){
- $char = substr($ch,i,1);
- $res[$char]=substr_count($ch,$char);
- }
- return $res
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement