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