webCOMAND

string_util::normalize_accent_chars()

Convert all accented characters in a string, such as 'ò', 'ó', 'ô', 'õ', 'ö', 'ø' and 'ð' to their non-accented equivalent, such as 'o'.

Prototype

string normalize_accent_chars(string $str)

Parameters

  • str - Text string to convert.

Return

The new string with characters converted.

Example

// output: This is a resume.
$str = 'This is a résumé.';
$str = \io_comand_util\string_util::normalize_accent_chars($str);
echo($str);