public static byteLength ( string $string ) : integer | ||
$string | string | the string being measured for length |
return | integer | the number of bytes in the given string. |
public static function byteLength($string)
{
return mb_strlen($string, '8bit');
}