array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.mb-strlen.php', 1 => 'mb_strlen', ), 'up' => array ( 0 => 'ref.mbstring.php', 1 => 'Fonctions sur les chaînes de caractères multioctets', ), 'prev' => array ( 0 => 'function.mb-stristr.php', 1 => 'mb_stristr', ), 'next' => array ( 0 => 'function.mb-strpos.php', 1 => 'mb_strpos', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/mbstring/functions/mb-strlen.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8)
mb_strlen — Retourne la taille d'une chaîne
Récupère la taille de la chaîne fournie.
string
La chaîne à analyser.
encoding
Le paramètre encoding
est l'encodage des caractères. S'il est omis ou null
, l'encodage de caractères interne
sera utilisé.
Retourne le nombre de caractères
dans la chaîne string
, avec l'encodage
encoding
. Un caractère multioctets est
alors compté pour 1.
Si l'encodage est inconnue, une erreur de niveau
E_WARNING
est générée.
Version | Description |
---|---|
8.0.0 |
encoding est désormais nullable.
|