KTDev Return the string in upper case with accented characters (fr_FR)

/** * Return the string in upper case and accented characters * * @param string $string */ function strtoupperFr($string) { $string = strtoupper($string); $string = str_replace( array('é', 'è', 'ê', 'ë', 'à', 'â', 'î', 'ï', 'ô', 'ù', 'û'), array('É', 'È', 'Ê', 'Ë', 'À', 'Â', 'Î', 'Ï', 'Ô', 'Ù', 'Û'), $string ); return $string; }
Return the string in upper case and accented characters. For french language.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.