Home
last modified time | relevance | path

Searched refs:mb_strrchr (Results 1 – 10 of 10) sorted by last modified time

/php-src/ext/mbstring/
H A Dmbstring.c2199 PHP_FUNCTION(mb_strrchr) in PHP_FUNCTION() argument
H A Dmbstring.stub.php103 function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encodin… function
H A Dmbstring_arginfo.h343 ZEND_FUNCTION(mb_strrchr);
442 ZEND_FE(mb_strrchr, arginfo_mb_strrchr)
/php-src/ext/mbstring/tests/
H A Dmb_strrchr_basic.phpt2 Test mb_strrchr() function : basic functionality
7 echo "*** Testing mb_strrchr() : basic functionality ***\n";
17 var_dump(bin2hex(mb_strrchr($string_ascii, 'd')));
18 var_dump(bin2hex(mb_strrchr($string_ascii, 'd', true)));
21 var_dump(mb_strrchr($string_ascii, '123'));
25 var_dump(bin2hex(mb_strrchr($string_mb, $needle1)));
27 var_dump(bin2hex(mb_strrchr($string_mb, $needle1, true)));
31 var_dump(mb_strrchr($string_mb, $needle2));
34 // Regression test from when mb_strrchr was being reimplemented
35 var_dump(mb_strrchr("\x00t\x00", "", false, "UTF32"));
[all …]
H A Dmb_str_functions_opt-parameter.phpt12 echo mb_strrchr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
35 Deprecated: mb_strrchr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated …
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
H A Dmb_strrchr_empty_needle.phpt2 Test mb_strrchr() function : with empty needle
15 var_dump(mb_strrchr($string_ascii, '', false, 'ISO-8859-1'));
16 var_dump(mb_strrchr($string_ascii, ''));
17 var_dump(mb_strrchr($string_ascii, '', true));
20 var_dump(mb_strrchr($string_mb, ''));
21 var_dump(mb_strrchr($string_mb, '', false, 'utf-8'));
22 var_dump(mb_strrchr($string_mb, '', true));
H A Dmb_strrchr_error2.phpt2 Test mb_strrchr() function : error conditions
7 echo "*** Testing mb_strrchr() : error conditions ***\n";
10 echo "\n-- Testing mb_strrchr() with unknown encoding --\n";
17 var_dump( mb_strrchr($haystack, $needle, $part, $encoding) );
24 *** Testing mb_strrchr() : error conditions ***
26 -- Testing mb_strrchr() with unknown encoding --
27 mb_strrchr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
H A Dmb_strrchr_variation5.phpt2 Test mb_strrchr() function : variation - multiple needles
7 echo "*** Testing mb_strrchr() : variation ***\n";
20 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, false)));
21 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii, true)));
24 $res = mb_strrchr($string_mb, $needle_mb, false);
31 $res = mb_strrchr($string_mb, $needle_mb, true);
42 *** Testing mb_strrchr() : variation ***
H A Dmb_strrchr_variation6.phpt2 Test mb_strrchr() function : variation - case sensitivity
7 echo "*** Testing mb_strrchr() : variation ***\n";
25 var_dump(bin2hex(mb_strrchr($string_ascii, $needle_ascii_lower)));
27 var_dump(mb_strrchr($string_ascii, $needle_ascii_upper));
28 var_dump(mb_strrchr($string_ascii, $needle_ascii_mixed));
32 $res = mb_strrchr($string_mb, $needle_mb_lower, false);
40 var_dump(mb_strrchr($string_mb, $needle_mb_upper));
41 var_dump(mb_strrchr($string_mb, $needle_mb_mixed));
46 *** Testing mb_strrchr() : variation ***

Completed in 29 milliseconds