Home
last modified time | relevance | path

Searched refs:stripos (Results 1 – 25 of 26) sorted by relevance

12

/PHP-8.1/ext/standard/tests/strings/
H A Dstripos.phpt2 stripos() function test
13 var_dump(stripos("", ""));
14 var_dump(stripos("a", ""));
15 var_dump(stripos("", "a"));
16 var_dump(stripos("a", " "));
17 var_dump(stripos("a", "a"));
18 var_dump(stripos("", 1));
19 var_dump(stripos("", false));
20 var_dump(stripos("", true));
21 var_dump(stripos("a", 1));
[all …]
H A Dstripos_basic2.phpt12 var_dump( stripos("Hello, World", "Hello", 0) );
13 var_dump( stripos("Hello, World", 'Hello', 1) );
14 var_dump( stripos('Hello, World', 'WORLD', 1) );
15 var_dump( stripos('Hello, World', "WoRld", 5) );
22 var_dump( stripos($heredoc_str, 'Hello', 0) );
23 var_dump( stripos($heredoc_str, 'Hello', 1) );
30 var_dump( stripos("Hello, World", "o", 3) );
31 var_dump( stripos("Hello, World", "O", 5) );
32 var_dump( stripos("Hello, World", "o", 6) );
33 var_dump( stripos("Hello, World", "o", 10) );
[all …]
H A Dstripos_basic1.phpt12 var_dump( stripos("Hello, World", "Hello") );
13 var_dump( stripos('Hello, World', "hello") );
14 var_dump( stripos("Hello, World", 'World') );
15 var_dump( stripos('Hello, World', 'WORLD') );
18 var_dump( stripos("Hello, World", "o") );
19 var_dump( stripos("Hello, World", ",") );
22 var_dump( stripos($heredoc_str, "Hello, World") );
23 var_dump( stripos($heredoc_str, 'Hello') );
24 var_dump( stripos($heredoc_str, $heredoc_str) );
27 var_dump( stripos("Hello, World", "ooo") );
[all …]
H A Dstripos_variation4.phpt2 Test stripos() function : usage variations - heredoc string containing special chars for 'haystack'…
5 /* Test stripos() function by passing heredoc string containing special chars for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
16 var_dump( stripos($special_chars_str, "Ex'ple", 0) );
17 var_dump( stripos($special_chars_str, "!@@!", 23) );
18 var_dump( stripos($special_chars_str, '_') );
19 var_dump( stripos($special_chars_str, '("_")') );
20 var_dump( stripos($special_chars_str, "$*") );
21 var_dump( stripos($special_chars_str, "$*", 10) );
22 var_dump( stripos($special_chars_str, "(special)") );
[all …]
H A Dstripos_variation3.phpt2 Test stripos() function : usage variations - multi line heredoc string for 'haystack' argument
5 /* Test stripos() function by passing multi-line heredoc string for haystack and
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
16 var_dump( stripos($multi_line_str, "ing", 0) );
17 var_dump( stripos($multi_line_str, "ing", 15) );
18 var_dump( stripos($multi_line_str, "ing", 22) );
19 var_dump( stripos($multi_line_str, "") );
20 var_dump( stripos($multi_line_str, " ") );
25 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation5.phpt2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' …
5 /* Test stripos() function by passing heredoc string containing escape chars for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
15 var_dump( stripos($control_char_str, "\n") );
16 var_dump( stripos($control_char_str, "\t") );
17 var_dump( stripos($control_char_str, "\n", 12) );
18 var_dump( stripos($control_char_str, "\t", 15) );
23 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation6.phpt2 Test stripos() function : usage variations - heredoc string containing quotes for 'haystack' argume…
5 /* Test stripos() function by passing heredoc string containing quotes for haystack
9 echo "*** Testing stripos() function: with heredoc strings ***\n";
17 var_dump( stripos($quote_char_str, "line") );
18 var_dump( stripos($quote_char_str, 'things') );
19 var_dump( stripos($quote_char_str, 'things', 0) );
20 var_dump( stripos($quote_char_str, "things", 20) );
24 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_error.phpt2 Test stripos() function : error conditions
5 echo "*** Testing stripos() function: error conditions ***\n";
9 stripos("Hello World", "o", 12);
16 stripos("Hello World", "o", -12);
24 *** Testing stripos() function: error conditions ***
27 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
30 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstripos_variation12.phpt2 Test stripos() function : usage variations - null terminated strings for 'haystack' argument
5 /* Test stripos() function with null terminated strings for 'haystack' argument
9 echo "*** Test stripos() function: binary safe ***\n";
21 var_dump( stripos($haystacks[$index], "\0") );
22 var_dump( stripos($haystacks[$index], "\0", $index) );
27 *** Test stripos() function: binary safe ***
H A Dstripos_variation13.phpt2 Test stripos() function : usage variations - null terminated strings for 'needle' argument
5 /* Test stripos() function with null terminated strings for 'needle' argument
9 echo "*** Test stripos() function: binary safe ***\n";
23 var_dump( stripos($haystack, $needles[$index]) );
24 var_dump( stripos($haystack, $needles[$index], $index) );
29 *** Test stripos() function: binary safe ***
H A Dstripos_variation1.phpt2 Test stripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
7 echo "*** Testing stripos() function: with double quoted strings ***\n";
71 var_dump( stripos($haystack, $needle[$index]) );
72 var_dump( stripos($haystack, $needle[$index], $index) );
78 *** Testing stripos() function: with double quoted strings ***
H A Dstripos_variation2.phpt2 Test stripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Test stripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
7 echo "*** Testing stripos() function: with single quoted strings ***\n";
73 var_dump( stripos($haystack, $needle[$index]) );
74 var_dump( stripos($haystack, $needle[$index], $index) );
80 *** Testing stripos() function: with single quoted strings ***
H A Dstripos_variation8.phpt2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument
5 /* Test stripos() function with strings containing repetitive chars for haystak
9 echo "*** Testing stripos() function: strings repetitive chars ***\n";
27 var_dump( stripos($haystack, $needles[$index], $offset) );
34 *** Testing stripos() function: strings repetitive chars ***
H A Dbug40754.phpt26 stripos("abcde", "abc", $v);
50 stripos("abcde", "abc", $v);
85 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
89 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.1/ext/mbstring/tests/
H A Dbug45923.phpt24 section('stripos' , "abc abc abc" , "abc");
80 ------- stripos -----------
93 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
101 stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.1/sapi/cli/tests/
H A Dbug64878.phpt15 return stripos($value, 'Content-Type') === 0;
/PHP-8.1/tests/run-test/
H A Dextensions-shared.phpt8 if (false !== stripos(`$php -n -m`, 'openssl')) {
/PHP-8.1/Zend/tests/
H A Dbug54910.phpt7 if (stripos($method, 'get') === 0) {
/PHP-8.1/ext/oci8/tests/
H A Ddrcp_cclass1.phpt10 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
H A Ddrcp_privileged.phpt10 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
/PHP-8.1/ext/mysqli/tests/
H A Dmysqli_pconn_max_links.phpt143 $phpinfo = substr($phpinfo, stripos($phpinfo, 'MysqlI Support => enabled'), 500);
181 $phpinfo = substr($phpinfo, stripos($phpinfo, 'MysqlI Support => enabled'), 500);
/PHP-8.1/ext/standard/tests/file/windows_acls/
H A Dcommon.inc16 if(stripos(php_uname(), 'XP') !== FALSE) {
/PHP-8.1/build/
H A Dgen_stub.php2939 if (stripos($xml, "<classsynopsis") === false) {
3076 …if (stripos($xml, "<methodsynopsis") === false && stripos($xml, "<constructorsynopsis") === false …
/PHP-8.1/ext/standard/
H A Dbasic_functions.stub.php781 function stripos(string $haystack, string $needle, int $offset = 0): int|false {} function
H A Dbasic_functions_arginfo.h2479 ZEND_FUNCTION(stripos);
3119 ZEND_FE(stripos, arginfo_stripos)

Completed in 74 milliseconds

12