Home
last modified time | relevance | path

Searched refs:mb_strrichr (Results 1 – 11 of 11) sorted by relevance

/PHP-7.2/ext/mbstring/tests/
H A Dmb_strrichr_error1.phpt2 Test mb_strrichr() function : error conditions
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : error conditions ***\n";
19 //Test mb_strrichr with one more than the expected number of arguments
26 var_dump( mb_strrichr($haystack, $needle, $part, $encoding, $extra_arg) );
28 // Testing mb_strrichr with one less than the expected number of arguments
31 var_dump( mb_strrichr($haystack) );
36 *** Testing mb_strrichr() : error conditions ***
38 -- Testing mb_strrichr() function with more than expected no. of arguments --
40 Warning: mb_strrichr() expects at most 4 parameters, 5 given in %s on line %d
[all …]
H A Dmb_strrichr_variation5.phpt2 Test mb_strrichr() function : usage variation - multiple needles
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : basic functionality ***\n";
34 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_upper, true)));
42 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, false)));
43 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper, true)));
44 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, false)));
45 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, true)));
46 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, false)));
47 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, true)));
[all …]
H A Dmb_strrichr_variation4.phpt6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : usage variation ***\n";
122 *** Testing mb_strrichr() : usage variation ***
125 Error: 2 - mb_strrichr(): Unknown encoding "0", %s(%d)
129 Error: 2 - mb_strrichr(): Unknown encoding "1", %s(%d)
177 Error: 2 - mb_strrichr(): Unknown encoding "", %s(%d)
181 Error: 2 - mb_strrichr(): Unknown encoding "", %s(%d)
189 Error: 2 - mb_strrichr(): Unknown encoding "", %s(%d)
197 Error: 2 - mb_strrichr(): Unknown encoding "", %s(%d)
201 Error: 2 - mb_strrichr(): Unknown encoding "", %s(%d)
[all …]
H A Dmb_strrichr_error2.phpt2 Test mb_strrichr() function : error conditions
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
10 /* Prototype : string mb_strrichr(string haystack, string needle[, bool part[, string encoding]])
16 echo "*** Testing mb_strrichr() : error conditions ***\n";
19 echo "\n-- Testing mb_strrichr() with unknown encoding --\n";
24 var_dump( mb_strrichr($haystack, $needle, $part, $encoding) );
29 *** Testing mb_strrichr() : error conditions ***
31 -- Testing mb_strrichr() with unknown encoding --
33 Warning: mb_strrichr(): Unknown encoding "unknown-encoding" in %s on line %d
H A Dmb_strrichr_basic.phpt2 Test mb_strrichr() function : basic functionality
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : basic functionality ***\n";
33 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_lower)));
34 var_dump(bin2hex(mb_strrichr($string_ascii, $needle_ascii_mixed, true)));
38 var_dump(mb_strrichr($string_ascii, '123'));
41 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_upper)));
42 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_lower, false, 'utf-8')));
43 var_dump(bin2hex(mb_strrichr($string_mb, $needle_mb_mixed, true)));
48 var_dump(mb_strrichr($string_mb, $needle2));
[all …]
H A Dmb_strrichr_variation3.phpt2 Test mb_strrichr() function : usage variation - different values for part
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : usage variation ***\n";
120 $res = mb_strrichr($haystack, $needle, $value, $encoding);
134 *** Testing mb_strrichr() : usage variation ***
164 Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
168 Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
172 Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
176 Error: 2 - mb_strrichr() expects parameter 3 to be boolean, array given, %s(%d)
216 Error: 2 - mb_strrichr() expects parameter 3 to be boolean, object given, %s(%d)
[all …]
H A Dmb_strrichr_variation1.phpt2 Test mb_strrichr() function : usage variation - various haystacks, needle won't be found
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : usage variation ***\n";
114 var_dump( mb_strrichr($value, $needle, $part, $encoding) );
122 *** Testing mb_strrichr() : usage variation ***
152 Error: 2 - mb_strrichr() expects parameter 1 to be string, array given, %s(%d)
156 Error: 2 - mb_strrichr() expects parameter 1 to be string, array given, %s(%d)
160 Error: 2 - mb_strrichr() expects parameter 1 to be string, array given, %s(%d)
164 Error: 2 - mb_strrichr() expects parameter 1 to be string, array given, %s(%d)
195 Error: 2 - mb_strrichr() expects parameter 1 to be string, object given, %s(%d)
[all …]
H A Dmb_strrichr_variation2.phpt2 Test mb_strrichr() function : usage variation - different types of needle.
6 function_exists('mb_strrichr') or die("skip mb_strrichr() is not available in this build");
16 echo "*** Testing mb_strrichr() : usage variation ***\n";
114 var_dump( mb_strrichr($haystack, $value, $part, $encoding) );
122 *** Testing mb_strrichr() : usage variation ***
152 Error: 2 - mb_strrichr() expects parameter 2 to be string, array given, %s(%d)
156 Error: 2 - mb_strrichr() expects parameter 2 to be string, array given, %s(%d)
160 Error: 2 - mb_strrichr() expects parameter 2 to be string, array given, %s(%d)
164 Error: 2 - mb_strrichr() expects parameter 2 to be string, array given, %s(%d)
195 Error: 2 - mb_strrichr() expects parameter 2 to be string, object given, %s(%d)
[all …]
H A Dmb_str_functions_opt-parameter.phpt14 echo mb_strrichr('foobarbaz', 'BA', null, 'UTF-8') . "\n";
/PHP-7.2/ext/mbstring/
H A Dmbstring.h114 PHP_FUNCTION(mb_strrichr);
H A Dmbstring.c559 PHP_FE(mb_strrichr, arginfo_mb_strrichr)
2775 PHP_FUNCTION(mb_strrichr) in PHP_FUNCTION() argument

Completed in 41 milliseconds