Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Str/Byte/before.php
Назад
<?php declare(strict_types=1); namespace Psl\Str\Byte; use Psl\Str\Exception; /** * @throws Exception\OutOfBoundsException If the $offset is out-of-bounds. * * @pure */ function before( string $haystack, string $needle, int $offset = 0 ): ?string { $length = search($haystack, $needle, $offset); if (null === $length) { return null; } return slice($haystack, 0, $length); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка