Utilizar el siguiente codigo para eliminar acentos y caracteres especiales de una string PHP
- 
/**
 - 
* @name clearString
 - 
* @description Replaces all non ANSI characters to their similar on it. If the character has no translation to ANSI code, put a underscore
 - 
* @param string $string
 - 
* @return string $string
 - 
*/
 - 
private static function clear_string($string){
 - 
$string );
 - 
$string );
 - 
$string );
 - 
$string );
 - 
$string );
 - 
$string );
 - 
//Other characters are deleted here by a ‘_’
 - 
“#”, “@”, “|”, “!”, “\”“,
 - 
“·”, “$”, “%”, “&”, “/”,
 - 
“(“, “)”, “?”, “‘”, “¡”,
 - 
“¿”, “[“, “^”, “`”, “]”,
 - 
“+”, “}”, “{“, “¨”, “´”,
 - 
“>”, “< “, “;”, “,”, “:”),
 - 
‘_’,
 - 
$string );
 - 
return $string;
 - 
}