<?php function my_word_count($text) { preg_match_all("(\w+)u", $text, $matches); return count($matches[0]); } var_dump(my_word_count('мама'));
You have javascript disabled. You will not be able to edit any code.