Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Str/Grapheme/strip_prefix.php
Назад
<?php declare(strict_types=1); namespace Psl\Str\Grapheme; use Psl\Str\Exception; /** * Returns the string with the given prefix removed, or the string itself if * it doesn't start with the prefix. * * @throws Exception\InvalidArgumentException If $string is not made of grapheme clusters. * * @pure */ function strip_prefix(string $string, string $prefix): string { if ('' === $prefix || !starts_with($string, $prefix)) { return $string; } /** @psalm-suppress MissingThrowsDocblock */ return slice($string, length($prefix)); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка