Home
last modified time | relevance | path

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

/PHP-8.0/ext/mbstring/tests/
H A Dmb_strrchr_basic.phpt2 Test mb_strrchr() function : basic functionality
6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build");
10 echo "*** Testing mb_strrchr() : basic functionality ***\n";
20 var_dump(bin2hex(mb_strrchr($string_ascii, 'd')));
21 var_dump(bin2hex(mb_strrchr($string_ascii, 'd', true)));
25 var_dump(mb_strrchr($string_ascii, '123'));
29 var_dump(bin2hex(mb_strrchr($string_mb, $needle1)));
30 var_dump(bin2hex(mb_strrchr($string_mb, $needle1, false, 'utf-8')));
31 var_dump(bin2hex(mb_strrchr($string_mb, $needle1, true)));
36 var_dump(mb_strrchr($string_mb, $needle2));
[all …]
H A Dmb_strrchr_empty_needle.phpt2 Test mb_strrchr() function : with empty needle
6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build");
18 var_dump(mb_strrchr($string_ascii, '', false, 'ISO-8859-1'));
19 var_dump(mb_strrchr($string_ascii, ''));
20 var_dump(mb_strrchr($string_ascii, '', true));
23 var_dump(mb_strrchr($string_mb, ''));
24 var_dump(mb_strrchr($string_mb, '', false, 'utf-8'));
25 var_dump(mb_strrchr($string_mb, '', true));
H A Dmb_strrchr_error2.phpt2 Test mb_strrchr() function : error conditions
6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build");
10 echo "*** Testing mb_strrchr() : error conditions ***\n";
13 echo "\n-- Testing mb_strrchr() with unknown encoding --\n";
20 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
27 *** Testing mb_strrchr() : error conditions ***
29 -- Testing mb_strrchr() with unknown encoding --
30 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrchr_variation6.phpt2 Test mb_strrchr() function : variation - case sensitivity
6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build");
10 echo "*** Testing mb_strrchr() : variation ***\n";
28 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii_lower)));
30 var_dump(mb_strrchr($string_ascii, $needle_ascii_upper));
31 var_dump(mb_strrchr($string_ascii, $needle_ascii_mixed));
35 $res = mb_strrchr($string_mb, $needle_mb_lower, false);
43 var_dump(mb_strrchr($string_mb, $needle_mb_upper));
44 var_dump(mb_strrchr($string_mb, $needle_mb_mixed));
49 *** Testing mb_strrchr() : variation ***
H A Dmb_strrchr_variation5.phpt2 Test mb_strrchr() function : variation - multiple needles
6 function_exists('mb_strrchr') or die("skip mb_strrchr() is not available in this build");
10 echo "*** Testing mb_strrchr() : variation ***\n";
23 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, false)));
24 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, true)));
27 $res = mb_strrchr($string_mb, $needle_mb, false);
34 $res = mb_strrchr($string_mb, $needle_mb, true);
45 *** Testing mb_strrchr() : variation ***
H A Dmb_str_functions_opt-parameter.phpt12 echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
H A Dmb_str_unknown_encoding.phpt84 mb_strrchr('coudenys', 'cou', false, 'UTF-0');
157 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
/PHP-8.0/ext/mbstring/
H A Dmbstring_arginfo.h322 ZEND_FUNCTION(mb_strrchr);
416 ZEND_FE(mb_strrchr, arginfo_mb_strrchr)
H A Dmbstring.stub.php38 function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encodin… function
H A Dmbstring.c2069 PHP_FUNCTION(mb_strrchr) in PHP_FUNCTION() argument
/PHP-8.0/
H A DUPGRADING385 mb_strripos(), mb_strstr(), mb_stristr(), mb_strrchr() and mb_strrichr() can

Completed in 25 milliseconds