1 2 3 4 5 6 7 8 9 10 11 12
|
$Correction = $Email;
$Correction = trim(ereg_replace ('(%20)', ' ', $Correction));
$Correction = trim(ereg_replace ('<br>' , '' , $Correction));
$Correction = trim(eregi_replace('(%3c)', '.', $Correction));
$Correction = trim(eregi_replace('}' , 'e', $Correction));
$Correction = trim(ereg_replace ("[](){}<> \t=$£µ§¤#^'`¨~²[]\"<>*", '' , $Correction));
if (!strstr($Correction, '@') && strstr($Correction, 'à')) { $Correction = str_replace('à', '@', $Correction); }
$Correction = strtr($Correction, 'ÄÂÀâäàãéèêëËÉÈÙîïìôõöÖÔÒùûüçÇ*/:', 'aaaaaaaeeeeeeeeeeiiioooooouuucccc-..'); // Attention 'Ù' devient 'e' !
$Correction = ereg_replace('[\\|/%\'°";?,!]', '.', $Correction);
$Correction = ereg_replace('( |\. | \.|\.\.|\.-|-\.)', '.', $Correction);
$Correction = ereg_replace('(--|-\.-|-_|_-)', '-', $Correction); |
Partager