Searched refs:mb_strrpos (Results 1 – 14 of 14) sorted by relevance
/PHP-7.0/ext/mbstring/tests/ |
H A D | mb_strrpos_error1.phpt | 2 Test mb_strrpos() function : error conditions - pass incorrect number of args 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 16 * Pass mb_strrpos() an incorrect number of arguments 19 echo "*** Testing mb_strrpos() : error conditions ***\n"; 22 //Test mb_strrpos with one more than the expected number of arguments 29 var_dump( mb_strrpos($haystack, $needle, $offset, $encoding, $extra_arg) ); 31 // Testing mb_strrpos with one less than the expected number of arguments 34 var_dump( mb_strrpos($haystack) ); 39 *** Testing mb_strrpos() : error conditions *** 41 -- Testing mb_strrpos() function with more than expected no. of arguments -- [all …]
|
H A D | mb_strrpos_variation4.phpt | 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 20 echo "*** Testing mb_strrpos() : usage variations ***\n"; 109 *** Testing mb_strrpos() : usage variations *** 113 Warning: mb_strrpos(): Unknown encoding "0" in %s on line %d 118 Warning: mb_strrpos(): Unknown encoding "1" in %s on line %d 158 Warning: mb_strrpos(): Unknown encoding "" in %s on line %d 163 Warning: mb_strrpos(): Unknown encoding "" in %s on line %d 173 Warning: mb_strrpos(): Unknown encoding "" in %s on line %d 183 Warning: mb_strrpos(): Unknown encoding "" in %s on line %d 188 Warning: mb_strrpos(): Unknown encoding "" in %s on line %d [all …]
|
H A D | mb_strrpos_basic.phpt | 2 Test mb_strrpos() function : basic functionality 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Test basic functionality of mb_strrpos() 19 echo "*** Testing mb_strrpos() : basic ***\n"; 28 var_dump(mb_strrpos($string_ascii, b'is', 4, 'ISO-8859-1')); 31 var_dump(mb_strrpos($string_ascii, b'hello, world')); 35 var_dump(mb_strrpos($string_mb, $needle1)); 39 var_dump(mb_strrpos($string_mb, $needle2)); 44 *** Testing mb_strrpos() : basic ***
|
H A D | bug43841.phpt | 2 Test mb_strrpos() function : mb_strrpos offset is byte count for negative values 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 16 * Test that mb_strrpos offset is byte count for negative values (should be character count) 28 var_dump( mb_strrpos($string_mb, $needle, $i, 'UTF-8') ); 30 echo "mb_strrpos:\n"; 31 var_dump(mb_strrpos(b'This is na English ta', b'a', $i)); 42 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 45 mb_strrpos: 60 mb_strrpos: 73 mb_strrpos: [all …]
|
H A D | mb_strrpos_error2.phpt | 2 Test mb_strrpos() function : error conditions - pass an unknown encoding 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() an encoding that doesn't exist 19 echo "*** Testing mb_strrpos() : error conditions ***\n"; 26 var_dump(mb_strrpos($haystack, $needle , $offset, $encoding)); 31 *** Testing mb_strrpos() : error conditions *** 33 Warning: mb_strrpos(): Unknown encoding "unknown-encoding" in %s on line %d
|
H A D | mb_strrpos_variation3.phpt | 2 Test mb_strrpos() function : usage variations - Pass different data types as $offset arg 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() different data types as $offset argument to test behaviour 19 echo "*** Testing mb_strrpos() : usage variations ***\n"; 79 // loop through each element of $inputs to check the behavior of mb_strrpos() 83 var_dump( mb_strrpos($haystack, $needle, $input, $encoding)); 90 *** Testing mb_strrpos() : usage variations *** 100 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d 105 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d [all …]
|
H A D | mb_strrpos_variation5.phpt | 2 Test mb_strrpos() function : usage variations - pass encoding as third argument (deprecated behavio… 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 19 echo "*** Testing mb_strrpos() : usage variations ***\n"; 34 var_dump(mb_strrpos($string_mb, $needle_mb, $input, 'utf-8')); 36 var_dump(mb_strrpos($string_mb, $needle_mb, $input)); 42 *** Testing mb_strrpos() : usage variations ***
|
H A D | mb_strrpos_variation1.phpt | 2 Test mb_strrpos() function : usage variations - pass different data types to $haystack arg 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() different data types as $haystack argument to test behaviour 19 echo "*** Testing mb_strrpos() : usage variations ***\n"; 94 // loop through each element of $inputs to check the behavior of mb_strrpos() 98 var_dump( mb_strrpos($input, $needle, $offset, $encoding)); 106 *** Testing mb_strrpos() : usage variations *** 179 Warning: mb_strrpos() expects parameter 1 to be string, resource given in %s on line %d
|
H A D | mb_strrpos_variation2.phpt | 2 Test mb_strrpos() function : usage variations - Pass different data types to $needle arg 6 function_exists('mb_strrpos') or die("skip mb_strrpos() is not available in this build"); 10 /* Prototype : int mb_strrpos(string $haystack, string $needle [, int $offset [, string $encoding]… 16 * Pass mb_strrpos() different data types as $needle argument to test behaviour 19 echo "*** Testing mb_strrpos() : usage variations ***\n"; 94 // loop through each element of $inputs to check the behavior of mb_strrpos() 98 var_dump( mb_strrpos($haystack, $input, $offset, $encoding)); 108 *** Testing mb_strrpos() : usage variations *** 181 Warning: mb_strrpos() expects parameter 2 to be string, resource given in %s on line %d
|
H A D | bug45923.phpt | 59 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 0)); 60 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 3)); 61 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 6)); 62 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 9)); 63 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 11)); 64 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", 12)); 65 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", -1)); 66 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", -3)); 67 var_dump(mb_strrpos("●○◆ ●○◆ ●○◆", "●○◆", -6)); 176 Warning: mb_strrpos(): Offset is greater than the length of haystack string in %s on line %d
|
H A D | mb_get_info.phpt | 45 string(10) "mb_strrpos" 109 string(10) "mb_strrpos" 135 string(10) "mb_strrpos"
|
H A D | mb_str_functions_opt-parameter.phpt | 8 echo mb_strrpos('abb', 'b', null, 'UTF-8') . "\n";
|
/PHP-7.0/ext/mbstring/ |
H A D | mbstring.h | 108 PHP_FUNCTION(mb_strrpos);
|
H A D | mbstring.c | 534 PHP_FE(mb_strrpos, arginfo_mb_strrpos) 2337 PHP_FUNCTION(mb_strrpos) in PHP_FUNCTION() argument
|
Completed in 29 milliseconds