Home
last modified time | relevance | path

Searched refs:strripos (Results 1 – 17 of 17) sorted by relevance

/PHP-8.0/ext/standard/tests/strings/
H A Dstrripos.phpt2 strripos() function
5 var_dump(strripos("test test string", "test"));
9 var_dump(strripos("test string", "g"));
10 var_dump(strripos("te".chr(0)."st", chr(0)));
11 var_dump(strripos("tEst", "test"));
12 var_dump(strripos("teSt", "test"));
13 var_dump(strripos("foo", "f", 1));
14 var_dump(strripos("", ""));
15 var_dump(strripos("a", ""));
16 var_dump(strripos("", "a"));
[all …]
H A Dstrripos_basic2.phpt11 var_dump( strripos("Hello, World", "HeLLo", 0) );
12 var_dump( strripos("Hello, World", 'Hello', 1) );
13 var_dump( strripos('Hello, World', 'world', 1) );
14 var_dump( strripos('Hello, World', "WorLD", 5) );
18 var_dump( strripos($heredoc_str, 'HelLo', 0) );
19 var_dump( strripos($heredoc_str, 'HeLLo', 1) );
24 var_dump( strripos("Hello, World", "O", 3) );
25 var_dump( strripos("Hello, World", "O", 6) );
26 var_dump( strripos("Hello, World", "O", 10) );
29 var_dump( strripos("Hello, World", "O", -1) );
[all …]
H A Dstrripos_basic1.phpt11 var_dump( strripos("Hello, World", "HeLLo") );
12 var_dump( strripos('Hello, World', "hello") );
13 var_dump( strripos("Hello, World", 'WoRLd') );
14 var_dump( strripos('Hello, World', 'WORLD') );
15 var_dump( strripos('Hello, World', 'foo') );
18 var_dump( strripos("Hello, World", "O") );
19 var_dump( strripos("Hello, World", ",") );
22 var_dump( strripos($heredoc_str, "Hello, WoRLd") );
23 var_dump( strripos($heredoc_str, 'HelLO') );
24 var_dump( strripos($heredoc_str, $heredoc_str) );
[all …]
H A Dstrripos_variation3.phpt18 var_dump( strripos($multi_line_str, "iNg", 0) );
19 var_dump( strripos($multi_line_str, "inG", 15) );
20 var_dump( strripos($multi_line_str, "Ing", 22) );
23 var_dump( strripos($multi_line_str, "Ing", -1) );
24 var_dump( strripos($multi_line_str, "Ing", -17) );
25 var_dump( strripos($multi_line_str, "Ing", -50) );
28 var_dump( strripos($multi_line_str, "spAn") );
29 var_dump( strripos($multi_line_str, "IPlE") );
30 var_dump( strripos($multi_line_str, "") );
31 var_dump( strripos($multi_line_str, " ") );
[all …]
H A Dstrripos_variation4.phpt2 Test strripos() function : usage variations - heredoc string containing special chars for 'haystack…
5 /* Test strripos() function by passing heredoc string containing special chars for haystack
9 echo "*** Testing strripos() function: with heredoc strings ***\n";
16 var_dump( strripos($special_chars_str, "Ex'pLE", 0) );
17 var_dump( strripos($special_chars_str, "!@@!", 23) );
18 var_dump( strripos($special_chars_str, '_') );
19 var_dump( strripos($special_chars_str, '("_")') );
20 var_dump( strripos($special_chars_str, "$*") );
21 var_dump( strripos($special_chars_str, "$*", 10) );
22 var_dump( strripos($special_chars_str, "(speCIal)") );
[all …]
H A Dstrripos_offset.phpt2 strripos() offset integer overflow
7 var_dump(strripos("t", "t", PHP_INT_MAX+1));
13 strripos(1024, 1024, -PHP_INT_MAX);
19 strripos(1024, "te", -PHP_INT_MAX);
25 strripos(1024, 1024, -PHP_INT_MAX-1);
31 strripos(1024, "te", -PHP_INT_MAX-1);
39 strripos(): Argument #3 ($offset) must be of type int, float given
40 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
41 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
42 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
[all …]
H A Dstrripos_variation5.phpt2 Test strripos() function : usage variations - heredoc string containing escape chars for 'haystack'…
5 /* Test strripos() function by passing heredoc string containing escape chars for haystack
9 echo "*** Testing strripos() function: with heredoc strings ***\n";
15 var_dump( strripos($control_char_str, "\n") );
16 var_dump( strripos($control_char_str, "\t") );
17 var_dump( strripos($control_char_str, "\n", 12) );
18 var_dump( strripos($control_char_str, "\t", 15) );
22 *** Testing strripos() function: with heredoc strings ***
H A Dstrrpos_negative_offset.phpt16 var_dump(strripos("HAYSTHACk", 'ha', -9));
17 var_dump(strripos("HAYSTACK", 'h', -8));
18 var_dump(strripos("HAYSTACK", 'k', -1));
19 var_dump(strripos("HAYSTACK", "ka", -1));
20 var_dump(strripos("HAYSTACK", 'a', -3));
21 var_dump(strripos("HAYSTACK", 'a', -4));
23 strripos("HAYSTACK", 'h', -9);
42 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
H A Dstrripos_variation6.phpt9 var_dump( strripos($haystack, "", -1) );
10 var_dump( strripos($haystack, "", -10) );
11 var_dump( strripos($haystack, "", -26) );
12 var_dump( strripos($haystack, "", -44) );
H A Dstrripos_variation1.phpt2 Test strripos() function : usage variations - double quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing double quoted strings for 'haystack' & 'needle' arguments */
7 echo "*** Testing strripos() function: with double quoted strings ***\n";
64 var_dump( strripos($haystack, $needle) );
65 var_dump( strripos($haystack, $needle, 1) );
66 var_dump( strripos($haystack, $needle, 20) );
67 var_dump( strripos($haystack, $needle, -1) );
72 *** Testing strripos() function: with double quoted strings ***
H A Dstrripos_variation2.phpt2 Test strripos() function : usage variations - single quoted strings for 'haystack' & 'needle' argum…
5 /* Test strripos() function by passing single quoted strings to 'haystack' & 'needle' arguments */
7 echo "*** Testing strripos() function: with single quoted strings ***\n";
65 var_dump( strripos($haystack, $needle) );
66 var_dump( strripos($haystack, $needle, 1) );
67 var_dump( strripos($haystack, $needle, 20) );
68 var_dump( strripos($haystack, $needle, -1) );
73 *** Testing strripos() function: with single quoted strings ***
H A Dbug40754.phpt62 strripos("abcde", "abc", $v);
68 strripos("abcde", "abc", $v);
91 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
92 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.0/ext/mbstring/tests/
H A Dbug45923.phpt30 section('strripos' , "abc abc abc" , "abc");
172 ------- strripos -----------
185 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
193 strripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php594 function strripos(string $haystack, string $needle, int $offset = 0): int|false {} function
H A Dbasic_functions_arginfo.h2471 ZEND_FUNCTION(strripos);
3108 ZEND_FE(strripos, arginfo_strripos)
H A Dstring.c1977 PHP_FUNCTION(strripos) argument
/PHP-8.0/
H A DUPGRADING546 . The needle argument of strpos(), strrpos(), stripos(), strripos(), strstr(),
551 . The needle argument for strpos(), strrpos(), stripos(), strripos(),

Completed in 86 milliseconds