pub fn mb_substr(
s: &[u8],
start: i64,
length: Option<i64>,
) -> Result<Vec<u8>, Error>Expand description
PHP mb_substr($string, $start, $length): characters from start
(negative: from the end) for length characters (negative: stop that
many before the end; None: to the end). Re-encodes: invalid sequences
in the result become ?. PHP_INT_MIN for either argument is PHP’s
ValueError.