<?php

function clean_all_chars($string)
{
    $string = strtr($string,
        "ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ",
        "AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn"
    );
    
    $string = preg_replace('/[^[email protected]#$%^&*()_+=\-;:\'"\/\.,<>?\s]/', '', $string);
    $string = preg_replace("/\s{2,}/", " ", $string);
    return $string;
}