Prefer mb_strlen
This commit is contained in:
parent
5054f54b3e
commit
3d3a231b27
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user