byteSubstr() public static method
Returns the portion of string specified by the start and length parameters.
This method ensures the string is treated as a byte array by using mb_substr()
.
public static string byteSubstr ( $string, $start, $length = null ) | ||
---|---|---|
$string | string |
The input string. Must be one character or longer. |
$start | integer |
The starting position |
$length | integer |
The desired portion length. If not specified or |
return | string |
The extracted part of string, or FALSE on failure or an empty string. |
Please login to continue.