Searched refs:mb_strripos (Results 1 – 15 of 15) sorted by relevance
/PHP-7.0/ext/mbstring/tests/ |
H A D | mb_strripos_error1.phpt | 2 Test mb_strripos() function : error conditions - Pass incorrect number of args 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 17 * Test how mb_strripos behaves when passed an incorrect number of arguments 20 echo "*** Testing mb_strripos() : error conditions ***\n"; 23 //Test mb_strripos with one more than the expected number of arguments 30 var_dump( mb_strripos($haystack, $needle, $offset, $encoding, $extra_arg) ); 32 // Testing mb_strripos with one less than the expected number of arguments 35 var_dump( mb_strripos($haystack) ); 40 *** Testing mb_strripos() : error conditions *** 42 -- Testing mb_strripos() function with more than expected no. of arguments -- [all …]
|
H A D | mb_strripos_variation4.phpt | 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 21 echo "*** Testing mb_strripos() : usage variations ***\n"; 110 *** Testing mb_strripos() : usage variations *** 114 Warning: mb_strripos(): Unknown encoding "0" in %s on line %d 119 Warning: mb_strripos(): Unknown encoding "1" in %s on line %d 159 Warning: mb_strripos(): Unknown encoding "" in %s on line %d 164 Warning: mb_strripos(): Unknown encoding "" in %s on line %d 174 Warning: mb_strripos(): Unknown encoding "" in %s on line %d 184 Warning: mb_strripos(): Unknown encoding "" in %s on line %d 189 Warning: mb_strripos(): Unknown encoding "" in %s on line %d [all …]
|
H A D | mb_strripos_error2.phpt | 2 Test mb_strripos() function : error conditions - Pass unknown encoding 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Pass an unknown encoding to mb_strripos() to test behaviour 20 echo "*** Testing mb_strripos() : error conditions ***\n"; 26 var_dump( mb_strripos($haystack, $needle, $offset, $encoding) ); 31 *** Testing mb_strripos() : error conditions *** 33 Warning: mb_strripos(): Unknown encoding "unknown-encoding" in %s on line %d
|
H A D | mb_strripos_variation3_Bug45923.phpt | 2 Test mb_strripos() function : usage variations - pass different data types as $offset arg 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 18 * Pass mb_strripos different data types as $offset arg to test behaviour 21 echo "*** Testing mb_strripos() : usage variations ***\n"; 96 // loop through each element of $inputs to check the behavior of mb_strripos() 100 var_dump( mb_strripos($haystack, $needle, $input, $encoding)); 109 *** Testing mb_strripos() : usage variations *** 168 Warning: mb_strripos() expects parameter 3 to be integer, string given in %s on line %d 173 Warning: mb_strripos() expects parameter 3 to be integer, string given in %s on line %d 178 Warning: mb_strripos() expects parameter 3 to be integer, string given in %s on line %d [all …]
|
H A D | mb_strripos_variation5_Bug45923.phpt | 2 Test mb_strripos() function : usage variations - Pass different integers as $offset argument 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Test how mb_strripos() behaves when passed different integers as $offset argument 24 echo "*** Testing mb_strripos() : usage variations ***\n"; 34 * mb_strripos should not be able to accept negative values as $offset. 40 var_dump(mb_strripos($string_ascii, $needle_ascii, $i)); 42 var_dump(mb_strripos($string_mb, $needle_mb, $i, 'UTF-8')); 49 *** Testing mb_strripos() : usage variations *** 78 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d [all …]
|
H A D | mb_strripos_basic2.phpt | 2 Test mb_strripos() function : basic functionality 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Test basic functionality of mb_strripos with ASCII and multibyte characters 20 echo "*** Testing mb_strripos() : basic functionality***\n"; 59 var_dump(mb_strripos($haystack, $needle)); 60 var_dump(mb_strripos($haystack, $needle, 14)); 67 var_dump(mb_strripos($haystack, $needle)); 68 var_dump(mb_strripos($haystack, $needle, 12)); 75 *** Testing mb_strripos() : basic functionality***
|
H A D | mb_strripos_variation1.phpt | 2 Test mb_strripos() function : usage variations - pass different data types to $haystack arg 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Pass mb_strripos different data types as $haystack arg to test behaviour 20 echo "*** Testing mb_strripos() : usage variations ***\n"; 95 // loop through each element of $inputs to check the behavior of mb_strripos() 99 var_dump( mb_strripos($input, $needle, $offset, $encoding)); 108 *** Testing mb_strripos() : usage variations *** 181 Warning: mb_strripos() expects parameter 1 to be string, resource given in %s on line %d
|
H A D | mb_strripos_variation2.phpt | 2 Test mb_strripos() function : usage variations - pass different data types as $needle arg 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Pass mb_strripos different data types as $needle arg to test behaviour 20 echo "*** Testing mb_strripos() : usage variations ***\n"; 95 // loop through each element of $inputs to check the behavior of mb_strripos() 99 var_dump( mb_strripos($haystack, $input, $offset, $encoding)); 108 *** Testing mb_strripos() : usage variations *** 181 Warning: mb_strripos() expects parameter 2 to be string, resource given in %s on line %d
|
H A D | mb_strripos_basic.phpt | 2 Test mb_strripos() function : basic functionality 6 function_exists('mb_strripos') or die("skip mb_strripos() is not available in this build"); 10 /* Prototype : int mb_strripos(string haystack, string needle [, int offset [, string encoding]]) 17 * Test basic functionality of mb_strripos with ASCII and multibyte characters 20 echo "*** Testing mb_strripos() : basic functionality***\n"; 81 var_dump(mb_strripos($haystack, $needle)); 93 var_dump(mb_strripos($haystack, $needle)); 101 *** Testing mb_strripos() : basic functionality***
|
H A D | bug45923.phpt | 79 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 0)); 80 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 3)); 81 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 6)); 82 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 9)); 83 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 11)); 84 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", 12)); 85 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", -1)); 86 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", -3)); 87 var_dump(mb_strripos("●○◆ ●○◆ ●○◆", "●○◆", -6)); 198 Warning: mb_strripos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_get_info.phpt | 49 string(11) "mb_strripos" 113 string(11) "mb_strripos" 139 string(11) "mb_strripos"
|
H A D | bug52931.phpt | 17 var_dump(mb_strripos($string, '</body>'));
|
H A D | mb_str_functions_opt-parameter.phpt | 10 echo mb_strripos('abb', 'B', null, 'UTF-8') . "\n";
|
/PHP-7.0/ext/mbstring/ |
H A D | mbstring.h | 110 PHP_FUNCTION(mb_strripos);
|
H A D | mbstring.c | 536 PHP_FE(mb_strripos, arginfo_mb_strripos) 2485 PHP_FUNCTION(mb_strripos) in PHP_FUNCTION() argument
|
Completed in 65 milliseconds