mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Ajout fonction unaccent
This commit is contained in:
parent
fec1540872
commit
dc75cd2ce2
|
|
@ -78,6 +78,13 @@ function check_mail ($mail)
|
|||
}
|
||||
}
|
||||
|
||||
function unaccent($str)
|
||||
{
|
||||
$acc = array("à","ä","é","è","ë","ï","î","ö","ô","ù","ü");
|
||||
$uac = array("a","a","e","e","e","i","i","o","o","u","u");
|
||||
|
||||
return str_replace($acc, $uac, $str);
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Envoi des messages dolibarr dans syslog ou dans un fichier
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user