Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/azjezz/psl/src/Psl/Str/Grapheme/contains.php
Назад
<?php declare(strict_types=1); namespace Psl\Str\Grapheme; use Psl\Str; /** * Returns whether the 'haystack' string contains the 'needle' string. * * An optional offset determines where in the haystack the search begins. * * If the offset is negative, the search will begin that many characters from the end * of the string. * * @pure * * @throws Str\Exception\OutOfBoundsException If $offset is out-of-bounds. * @throws Str\Exception\InvalidArgumentException If $haystack is not made of grapheme clusters. */ function contains(string $haystack, string $needle, int $offset = 0): bool { if ('' === $needle) { return Str\Internal\validate_offset($offset, length($haystack), true); } return null !== search($haystack, $needle, $offset); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0.02 |
proxy
|
phpinfo
|
Настройка