convert_accented_characters()

convert_accented_characters($str)

Parameters:
  • $str (string) – Input string
Returns:

A string with accented characters converted

Return type:

string

Transliterates high ASCII characters to low ASCII equivalents. Useful when non-English characters need to be used where only standard ASCII characters are safely used, for instance, in URLs.

Example:

$string = convert_accented_characters($string);

Note

This function uses a companion config file application/config/foreign_chars.php to define the to and from array for transliteration.

doc_CodeIgniter
2016-10-15 16:32:11
Comments
Leave a Comment

Please login to continue.