- array_count_values: documentation ( source)
- var_export: documentation ( source)
- str_word_count: documentation ( source)
<?php
$string = 'Hello, I don`t know who I "am" but I know who you are, but I don`t know where I am';
var_export(array_count_values(str_word_count($string, 1, '`')));