PHP 8.5.0 Alpha 4 available for testing

Voting

: four plus five?
(Example: nine)

The Note You're Voting On

Sidney Ricardo
16 years ago
This work fine to me:

<?php
function normaliza ($string){
$a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞ
ßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ'
;
$b = 'aaaaaaaceeeeiiiidnoooooouuuuy
bsaaaaaaaceeeeiiiidnoooooouuuyybyRr'
;
$string = utf8_decode($string);
$string = strtr($string, utf8_decode($a), $b);
$string = strtolower($string);
return
utf8_encode($string);
}
?>

<< Back to user notes page

To Top