Forum » » Le coin des codeurs » » connections via facebook
Posté : 26 mars 2012 à 10:31
// code colonelwog pour enlever les accents et les espaces
$file_cache = htmlentities($block_title, ENT_NOQUOTES, 'utf-8');
$file_cache = preg_replace('#\&([A-za-z])(?:uml|circ|tilde|acute|gra ve|cedil|ring)\;#', '\1', $file_cache);
$file_cache = preg_replace('#\&([A-za-z]{2})(?:lig)\;#', '\1', $file_cache);
$file_cache = preg_replace('#\&[^;]+\;#', '', $file_cache);
$file_cache = $dir_cache.$file_cache.'.html';
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=25432&forum=5