helpers\BaseStringHelper byteSubstr()

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().

See also http://www.php.net/manual/en/function.substr.php.

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 null, there will be no limit on length i.e. the output will be until the end of the string.

return string

The extracted part of string, or FALSE on failure or an empty string.

doc_Yii
2016-10-30 17:05:29
Comments
Leave a Comment

Please login to continue.