byteLength() public static method
Returns the number of bytes in the given string.
This method ensures the string is treated as a byte array by using mb_strlen()
.
public static integer byteLength ( $string ) | ||
---|---|---|
$string | string |
The string being measured for length |
return | integer |
The number of bytes in the given string. |
Please login to continue.