WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/remove accents

Description

Converts all accent characters to ASCII characters.

If there are no accent characters, then the string given is just returned.

Usage

<?php remove_accents$string ?>

Parameters

$string
(string) (required) Text that might have accent characters
Default: None

Return Values

(string) 
Filtered string with replaced "nice" characters.

Examples

<?php
$text = "Hoy será un gran día";
echo remove_accents ( $text );
?>

Echo result: Hoy sera un gran dia

Notes

Change Log

Since: 1.2.1

Source File

remove_accents() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.