Home
last modified time | relevance | path

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

12

/PHP-7.4/ext/standard/tests/strings/
H A Dstripos_basic2.phpt17 var_dump( stripos("Hello, World", "Hello", 0) );
18 var_dump( stripos("Hello, World", 'Hello', 1) );
27 var_dump( stripos($heredoc_str, 'Hello', 0) );
28 var_dump( stripos($heredoc_str, 'Hello', 1) );
35 var_dump( stripos("Hello, World", "o", 3) );
36 var_dump( stripos("Hello, World", "O", 5) );
37 var_dump( stripos("Hello, World", "o", 6) );
38 var_dump( stripos("Hello, World", "o", 10) );
39 var_dump( stripos("Hello, World", "o", -7) );
40 var_dump( stripos("Hello, World", "o", -8) );
[all …]
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_basic1.phpt17 var_dump( stripos("Hello, World", "Hello") );
18 var_dump( stripos('Hello, World', "hello") );
19 var_dump( stripos("Hello, World", 'World') );
20 var_dump( stripos('Hello, World', 'WORLD') );
23 var_dump( stripos("Hello, World", "o") );
24 var_dump( stripos("Hello, World", ",") );
27 var_dump( stripos($heredoc_str, "Hello, World") );
28 var_dump( stripos($heredoc_str, 'Hello') );
29 var_dump( stripos($heredoc_str, $heredoc_str) );
32 var_dump( stripos("Hello, World", "ooo") );
[all …]
H A Dstripos_variation4.phpt5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing heredoc string containing special chars for haystack
14 echo "*** Testing stripos() function: with heredoc strings ***\n";
21 var_dump( stripos($special_chars_str, "Ex'ple", 0) );
22 var_dump( stripos($special_chars_str, "!@@!", 23) );
23 var_dump( stripos($special_chars_str, '_') );
24 var_dump( stripos($special_chars_str, '("_")') );
25 var_dump( stripos($special_chars_str, "$*") );
26 var_dump( stripos($special_chars_str, "$*", 10) );
27 var_dump( stripos($special_chars_str, "(special)") );
[all …]
H A Dstripos_error.phpt2 Test stripos() function : error conditions
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 echo "*** Testing stripos() function: error conditions ***\n";
12 var_dump( stripos() );
15 var_dump( stripos("String") );
18 var_dump( stripos("string", "String", 1, 'extra_arg') );
21 var_dump( stripos("Hello World", "o", 12) );
24 var_dump( stripos("Hello World", "o", -12) );
29 *** Testing stripos() function: error conditions ***
44 Warning: stripos(): Offset not contained in string in %s on line %d
[all …]
H A Dstripos_variation3.phpt2 Test stripos() function : usage variations - multi line heredoc string for 'haystack' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing multi-line heredoc string for haystack and
14 echo "*** Testing stripos() function: with heredoc strings ***\n";
21 var_dump( stripos($multi_line_str, "ing", 0) );
22 var_dump( stripos($multi_line_str, "ing", 15) );
23 var_dump( stripos($multi_line_str, "ing", 22) );
24 var_dump( stripos($multi_line_str, "") );
25 var_dump( stripos($multi_line_str, " ") );
30 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation7.phpt2 Test stripos() function : usage variations - empty heredoc string for 'haystack' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing empty heredoc string for haystack
14 echo "*** Testing stripos() function: with heredoc strings ***\n";
18 var_dump( stripos($empty_string, "") );
19 var_dump( stripos($empty_string, "", 1) );
20 var_dump( stripos($empty_string, FALSE) );
21 var_dump( stripos($empty_string, NULL) );
26 *** Testing stripos() function: with heredoc strings ***
30 Warning: stripos(): Offset not contained in string in %s on line %d
H A Dstripos_variation5.phpt2 Test stripos() function : usage variations - heredoc string containing escape chars for 'haystack' …
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing heredoc string containing escape chars for haystack
14 echo "*** Testing stripos() function: with heredoc strings ***\n";
20 var_dump( stripos($control_char_str, "\n") );
21 var_dump( stripos($control_char_str, "\t") );
22 var_dump( stripos($control_char_str, "\n", 12) );
23 var_dump( stripos($control_char_str, "\t", 15) );
28 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation11.phpt5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
84 var_dump( stripos($values[$index], $values[$index]) );
85 var_dump( stripos($values[$index], $values[$index], 1) );
201 Warning: stripos(): Offset not contained in string in %s on line %d
213 Warning: stripos(): Offset not contained in string in %s on line %d
229 Warning: stripos(): Offset not contained in string in %s on line %d
234 Warning: stripos(): Offset not contained in string in %s on line %d
239 Warning: stripos(): Offset not contained in string in %s on line %d
244 Warning: stripos(): Offset not contained in string in %s on line %d
256 Warning: stripos(): Offset not contained in string in %s on line %d
[all …]
H A Dstripos_variation6.phpt2 Test stripos() function : usage variations - heredoc string containing quotes for 'haystack' argume…
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing heredoc string containing quotes for haystack
14 echo "*** Testing stripos() function: with heredoc strings ***\n";
22 var_dump( stripos($quote_char_str, "line") );
23 var_dump( stripos($quote_char_str, 'things') );
24 var_dump( stripos($quote_char_str, 'things', 0) );
25 var_dump( stripos($quote_char_str, "things", 20) );
29 *** Testing stripos() function: with heredoc strings ***
H A Dstripos_variation12.phpt2 Test stripos() function : usage variations - null terminated strings for 'haystack' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with null terminated strings for 'haystack' argument
14 echo "*** Test stripos() function: binary safe ***\n";
26 var_dump( stripos($haystacks[$index], "\0") );
27 var_dump( stripos($haystacks[$index], "\0", $index) );
32 *** Test stripos() function: binary safe ***
H A Dstripos_variation10.phpt2 Test stripos() function : usage variations - unexpected inputs for 'needle' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with unexpected inputs for 'needle' and
14 echo "*** Testing stripos() function with unexpected values for needle ***\n";
86 var_dump( stripos($haystack, $needles[$index]) );
95 *** Testing stripos() function with unexpected values for needle ***
144 Warning: stripos(): needle is not a string or an integer in %s on line %d
149 Warning: stripos(): needle is not a string or an integer in %s on line %d
154 Warning: stripos(): needle is not a string or an integer in %s on line %d
159 Warning: stripos(): needle is not a string or an integer in %s on line %d
[all …]
H A Dstripos_variation13.phpt2 Test stripos() function : usage variations - null terminated strings for 'needle' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with null terminated strings for 'needle' argument
14 echo "*** Test stripos() function: binary safe ***\n";
28 var_dump( stripos($haystack, $needles[$index]) );
29 var_dump( stripos($haystack, $needles[$index], $index) );
34 *** Test stripos() function: binary safe ***
H A Dstripos_variation2.phpt2 Test stripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argume…
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
12 echo "*** Testing stripos() function: with single quoted strings ***\n";
80 var_dump( stripos($haystack, $needle[$index]) );
81 var_dump( stripos($haystack, $needle[$index], $index) );
87 *** Testing stripos() function: with single quoted strings ***
123 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
126 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
130 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
[all …]
H A Dstripos_variation1.phpt2 Test stripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argume…
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
12 echo "*** Testing stripos() function: with double quoted strings ***\n";
78 var_dump( stripos($haystack, $needle[$index]) );
79 var_dump( stripos($haystack, $needle[$index], $index) );
85 *** Testing stripos() function: with double quoted strings ***
121 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
124 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
128 Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an expl…
[all …]
H A Dstripos_variation8.phpt2 Test stripos() function : usage variations - repetitive chars for 'haystack' argument
5 /* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
10 /* Test stripos() function with strings containing repetitive chars for haystak
14 echo "*** Testing stripos() function: strings repetitive chars ***\n";
32 var_dump( stripos($haystack, $needles[$index], $offset) );
39 *** Testing stripos() function: strings repetitive chars ***
H A Dbug40754.phpt17 var_dump(stripos("abcde", "abc", $v));
21 var_dump(stripos("abcde", "abc", $v));
41 Warning: stripos(): Offset not contained in string in %s on line %d
53 Warning: stripos(): Offset not contained in string in %s on line %d
/PHP-7.4/ext/mbstring/tests/
H A Dmb_get_info.phpt47 ["stripos"]=>
111 ["stripos"]=>
137 ["stripos"]=>
H A Dbug45923.phpt20 section('stripos' , "abc abc abc" , "abc");
84 ------- stripos -----------
98 Warning: stripos(): Offset not contained in string in %s on line %d
108 Warning: stripos(): Offset not contained in string in %s on line %d
/PHP-7.4/sapi/cli/tests/
H A Dbug64878.phpt15 return stripos($value, 'Content-Type') === 0;
/PHP-7.4/tests/run-test/
H A Dbug75042.phpt6 if (false !== stripos(`$php -n -m`, 'openssl')) {
/PHP-7.4/Zend/tests/
H A Dbug54910.phpt7 if (stripos($method, 'get') === 0) {
/PHP-7.4/ext/oci8/tests/
H A Ddrcp_cclass1.phpt9 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
H A Ddrcp_privileged.phpt9 if (strpos($dbase, "/") !== false && stripos($dbase, ":pooled") === false)
/PHP-7.4/ext/standard/
H A Dphp_string.h45 PHP_FUNCTION(stripos);

Completed in 28 milliseconds

12