Searched refs:mb_strrchr (Results 1 – 13 of 13) sorted by relevance
/PHP-7.2/ext/mbstring/tests/ |
H A D | mb_strrchr_error1.phpt | 2 Test mb_strrchr() function : error conditions 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : error conditions ***\n"; 19 //Test mb_strrchr with one more than the expected number of arguments 26 var_dump( mb_strrchr($haystack, $needle, $part, $encoding, $extra_arg) ); 28 // Testing mb_strrchr with one less than the expected number of arguments 31 var_dump( mb_strrchr($haystack) ); 36 *** Testing mb_strrchr() : error conditions *** 38 -- Testing mb_strrchr() function with more than expected no. of arguments -- 40 Warning: mb_strrchr() expects at most 4 parameters, 5 given in %s on line %d [all …]
|
H A D | mb_strrchr_variation4.phpt | 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : usage variation ***\n"; 122 *** Testing mb_strrchr() : usage variation *** 125 Error: 2 - mb_strrchr(): Unknown encoding "0", %s(%d) 129 Error: 2 - mb_strrchr(): Unknown encoding "1", %s(%d) 177 Error: 2 - mb_strrchr(): Unknown encoding "", %s(%d) 181 Error: 2 - mb_strrchr(): Unknown encoding "", %s(%d) 189 Error: 2 - mb_strrchr(): Unknown encoding "", %s(%d) 197 Error: 2 - mb_strrchr(): Unknown encoding "", %s(%d) 201 Error: 2 - mb_strrchr(): Unknown encoding "", %s(%d) [all …]
|
H A D | mb_strrchr_basic.phpt | 2 Test mb_strrchr() function : basic functionality 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : basic functionality ***\n"; 26 var_dump(bin2hex(mb_strrchr($string_ascii, 'd'))); 27 var_dump(bin2hex(mb_strrchr($string_ascii, 'd', true))); 31 var_dump(mb_strrchr($string_ascii, '123')); 35 var_dump(bin2hex(mb_strrchr($string_mb, $needle1))); 36 var_dump(bin2hex(mb_strrchr($string_mb, $needle1, false, 'utf-8'))); 37 var_dump(bin2hex(mb_strrchr($string_mb, $needle1, true))); 42 var_dump(mb_strrchr($string_mb, $needle2)); [all …]
|
H A D | mb_strrchr_error2.phpt | 2 Test mb_strrchr() function : error conditions 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 16 echo "*** Testing mb_strrchr() : error conditions ***\n"; 19 echo "\n-- Testing mb_strrchr() with unknown encoding --\n"; 24 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) ); 29 *** Testing mb_strrchr() : error conditions *** 31 -- Testing mb_strrchr() with unknown encoding -- 33 Warning: mb_strrchr(): Unknown encoding "unknown-encoding" in %s on line %d
|
H A D | mb_strrchr_variation6.phpt | 2 Test mb_strrchr() function : variation - case sensitivity 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 16 echo "*** Testing mb_strrchr() : variation ***\n"; 34 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii_lower))); 36 var_dump(mb_strrchr($string_ascii, $needle_ascii_upper)); 37 var_dump(mb_strrchr($string_ascii, $needle_ascii_mixed)); 41 $res = mb_strrchr($string_mb, $needle_mb_lower, false); 49 var_dump(mb_strrchr($string_mb, $needle_mb_upper)); 50 var_dump(mb_strrchr($string_mb, $needle_mb_mixed)); [all …]
|
H A D | mb_strrchr_variation5.phpt | 2 Test mb_strrchr() function : variation - multiple needles 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 10 /* Prototype : string mb_strrchr(string haystack, string needle[, bool part[, string encoding]]) 16 echo "*** Testing mb_strrchr() : variation ***\n"; 29 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, false))); 30 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, true))); 33 $res = mb_strrchr($string_mb, $needle_mb, false); 40 $res = mb_strrchr($string_mb, $needle_mb, true); 52 *** Testing mb_strrchr() : variation ***
|
H A D | mb_strrchr_variation3.phpt | 2 Test mb_strrchr() function : usage variation - different values for part 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : usage variation ***\n"; 120 $res = mb_strrchr($haystack, $needle, $value, $encoding); 134 *** Testing mb_strrchr() : usage variation *** 164 Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d) 168 Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d) 172 Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d) 176 Error: 2 - mb_strrchr() expects parameter 3 to be boolean, array given, %s(%d) 216 Error: 2 - mb_strrchr() expects parameter 3 to be boolean, object given, %s(%d) [all …]
|
H A D | mb_strrchr_variation1.phpt | 2 Test mb_strrchr() function : usage variation - various haystacks, needle won't be found 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : usage variation ***\n"; 114 var_dump( mb_strrchr($value, $needle, $part, $encoding) ); 122 *** Testing mb_strrchr() : usage variation *** 152 Error: 2 - mb_strrchr() expects parameter 1 to be string, array given, %s(%d) 156 Error: 2 - mb_strrchr() expects parameter 1 to be string, array given, %s(%d) 160 Error: 2 - mb_strrchr() expects parameter 1 to be string, array given, %s(%d) 164 Error: 2 - mb_strrchr() expects parameter 1 to be string, array given, %s(%d) 195 Error: 2 - mb_strrchr() expects parameter 1 to be string, object given, %s(%d) [all …]
|
H A D | mb_strrchr_variation2.phpt | 2 Test mb_strrchr() function : usage variation - different types of needle. 6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build"); 16 echo "*** Testing mb_strrchr() : usage variation ***\n"; 114 var_dump( mb_strrchr($haystack, $value, $part, $encoding) ); 122 *** Testing mb_strrchr() : usage variation *** 152 Error: 2 - mb_strrchr() expects parameter 2 to be string, array given, %s(%d) 156 Error: 2 - mb_strrchr() expects parameter 2 to be string, array given, %s(%d) 160 Error: 2 - mb_strrchr() expects parameter 2 to be string, array given, %s(%d) 164 Error: 2 - mb_strrchr() expects parameter 2 to be string, array given, %s(%d) 195 Error: 2 - mb_strrchr() expects parameter 2 to be string, object given, %s(%d) [all …]
|
H A D | mb_get_info.phpt | 54 string(10) "mb_strrchr" 118 string(10) "mb_strrchr" 144 string(10) "mb_strrchr"
|
H A D | mb_str_functions_opt-parameter.phpt | 12 echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
|
/PHP-7.2/ext/mbstring/ |
H A D | mbstring.h | 112 PHP_FUNCTION(mb_strrchr);
|
H A D | mbstring.c | 557 PHP_FE(mb_strrchr, arginfo_mb_strrchr) 2626 PHP_FUNCTION(mb_strrchr) in PHP_FUNCTION() argument
|
Completed in 45 milliseconds