Remove Accents

Remove diacritical marks and accents from Unicode characters, converting them to their ASCII equivalents.

Code

General
preg_replace('/\pM/u', '', Normalizer::normalize($str, Normalizer::FORM_D));

Parameters

The string to normalize

Server

More PHP Snippets