tryphp_func_regex_preg_replace_callback_array.php:
'countLetters', '/\b[0-9]+\b/' => 'countDigits' ]; $result = preg_replace_callback_array($patterns, $input); echo $result; ?>
There[5letter] are[3letter] 365[3digit] days[4letter] in[2letter] a[1letter] year[4letter].