芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/qrafiqxcreativeagency.com/accounts/office/vendor/azjezz/psl/src/Psl/Str/contains.php
Bool(true) * * Str\contains('Hello, 'h') * => Bool(false) * * Str\contains('hello', 'L', 3) * => Bool(false) * * 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(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($haystack, $needle, $offset, $encoding); }