芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Str/slice.php
$length * * @throws Exception\OutOfBoundsException If the $offset is out-of-bounds. * * @pure */ function slice(string $string, int $offset, ?int $length = null, Encoding $encoding = Encoding::UTF_8): string { $string_length = length($string, $encoding); $offset = Internal\validate_offset($offset, $string_length); if (0 === $offset && (null === $length || $string_length <= $length)) { return $string; } return mb_substr($string, $offset, $length, $encoding->value); }