/PHP-8.0/ext/standard/tests/strings/ |
H A D | strripos.phpt | 2 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 D | strripos_basic2.phpt | 11 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 D | strripos_basic1.phpt | 11 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 D | strripos_variation3.phpt | 18 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 D | strripos_variation4.phpt | 2 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 D | strripos_offset.phpt | 2 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 D | strripos_variation5.phpt | 2 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 D | strrpos_negative_offset.phpt | 16 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 D | strripos_variation6.phpt | 9 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 D | strripos_variation1.phpt | 2 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 D | strripos_variation2.phpt | 2 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 D | bug40754.phpt | 62 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 D | bug45923.phpt | 30 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 D | basic_functions.stub.php | 594 function strripos(string $haystack, string $needle, int $offset = 0): int|false {} function
|
H A D | basic_functions_arginfo.h | 2471 ZEND_FUNCTION(strripos); 3108 ZEND_FE(strripos, arginfo_strripos)
|
H A D | string.c | 1977 PHP_FUNCTION(strripos) argument
|
/PHP-8.0/ |
H A D | UPGRADING | 546 . The needle argument of strpos(), strrpos(), stripos(), strripos(), strstr(), 551 . The needle argument for strpos(), strrpos(), stripos(), strripos(),
|