Get the length of a string in bytes

Paramètres

$string: get string length

1 call to advagg_missing_strlen()
advagg_missing_async_opp dans includes/missing.inc
Output text & set php in async mode.

Fichier

includes/missing.inc, line 269

Code

function advagg_missing_strlen($string) {
    if (function_exists('mb_strlen')) {
        return mb_strlen($string, '8bit');
    }
    else {
        return strlen($string);
    }
}