3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function _normalizaString($string) { $a = "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ"; $b = "aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr"; $string = str_replace(str_split($a), str_split($b), $string); return preg_replace('/\s+/', ' ', trim(strtolower($string), '()[]{}._\t\b\r')); }
Output for 4.3.0 - 7.1.7