whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
azjezz
/
psl
/
src
/
Psl
/
Str
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/azjezz/psl/src/Psl/Str/contains_ci.php
<?php declare(strict_types=1); namespace 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. * * Example: * * Str\contains('hello', 'l') * => Bool(true) * * Str\contains('Hello, 'h') * => Bool(true) * * Str\contains('hello', 'L', 3) * => Bool(true) * * Str\contains('hello', 'l', 4) * => Bool(false) * * Str\contains('hello', 'L', 2) * => Bool(true) * * Str\contains('سيف', 'س') * => Bool(true) * * @pure * * @throws Exception\OutOfBoundsException If the $offset is out-of-bounds. */ function contains_ci(string $haystack, string $needle, int $offset = 0, Encoding $encoding = Encoding::UTF_8): bool { if ('' === $needle) { return Internal\validate_offset($offset, length($haystack, $encoding), true); } return null !== search_ci($haystack, $needle, $offset, $encoding); }
Copyright ©2021 || Defacer Indonesia