Prefer mb_strlen

This commit is contained in:
Michael RICOIS 2015-07-28 12:36:09 +00:00
parent 5054f54b3e
commit 3d3a231b27

View File

@ -20,7 +20,7 @@ define ('ALIGN_RIGHT', 1);
*/
function initstr($chaine, $taille, $caractere_pour_combler=' ', $align=ALIGN_LEFT)
{
if (strlen($chaine) >= $taille) {
if (mb_strlen($chaine) >= $taille) {
return substr($chaine, 0, $taille);
}