<?php function initiales($string) { return preg_replace('#\B\p{L}\p{M}*+|\s+#u', '', $string); } echo initiales("I've got 21 cats and 1 dog!") . PHP_EOL; echo initiales("Je suis arrivée le 17 septembre.");
You have javascript disabled. You will not be able to edit any code.