Searched refs:mb_strstr (Results 1 – 12 of 12) sorted by relevance
/PHP-8.0/ext/mbstring/tests/ |
H A D | mb_strstr_basic.phpt | 2 Test mb_strstr() function : basic functionality 6 function_exists('mb_strstr') or die("skip mb_strstr() is not available in this build"); 10 echo "*** Testing mb_strstr() : basic functionality ***\n"; 20 var_dump(bin2hex(mb_strstr($string_ascii, 'd'))); 21 var_dump(bin2hex(mb_strstr($string_ascii, 'd', true))); 25 var_dump(mb_strstr($string_ascii, '123')); 29 var_dump(bin2hex(mb_strstr($string_mb, $needle1))); 30 var_dump(bin2hex(mb_strstr($string_mb, $needle1, false, 'utf-8'))); 31 var_dump(bin2hex(mb_strstr($string_mb, $needle1, true))); 36 var_dump(mb_strstr($string_mb, $needle2)); [all …]
|
H A D | mb_strstr.phpt | 2 mb_strstr() 15 var_dump(mb_strstr("あいうえおかきくけこ", "おかき")); 16 var_dump(mb_strstr("あいうえおかきくけこ", "おかき", false)); 17 var_dump(mb_strstr("あいうえおかきくけこ", "おかき", true)); 18 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), false, "EUC-JP"))); 19 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true, "EUC-JP"))); 21 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき")))); 22 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), false))); 23 var_dump(FROM_EUC_JP(mb_strstr(EUC_JP("あいうえおかきくけこ"), EUC_JP("おかき"), true)));
|
H A D | mb_strstr_error2.phpt | 2 Test mb_strstr() function : error conditions 6 function_exists('mb_strstr') or die("skip mb_strstr() is not available in this build"); 10 echo "*** Testing mb_strstr() : error conditions ***\n"; 13 echo "\n-- Testing mb_strstr() with unknown encoding --\n"; 20 var_dump( mb_strstr($haystack, $needle, $part, $encoding) ); 27 *** Testing mb_strstr() : error conditions *** 29 -- Testing mb_strstr() with unknown encoding -- 30 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "unknown-encoding" given
|
H A D | mb_strstr_empty_needle.phpt | 2 Test mb_strstr() function : with empty needle 6 function_exists('mb_strstr') or die("skip mb_strstr() is not available in this build"); 18 var_dump(mb_strstr($string_ascii, '', false, 'ISO-8859-1')); 19 var_dump(mb_strstr($string_ascii, '')); 20 var_dump(mb_strstr($string_ascii, '', true)); 23 var_dump(mb_strstr($string_mb, '')); 24 var_dump(mb_strstr($string_mb, '', false, 'utf-8')); 25 var_dump(mb_strstr($string_mb, '', true));
|
H A D | mb_strstr_variation6.phpt | 2 Test mb_strstr() function : variation - case sensitivity 6 function_exists('mb_strstr') or die("skip mb_strstr() is not available in this build"); 10 echo "*** Testing mb_strstr() : variation ***\n"; 28 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii_lower))); 30 var_dump(mb_strstr($string_ascii, $needle_ascii_upper)); 31 var_dump(mb_strstr($string_ascii, $needle_ascii_mixed)); 35 $res = mb_strstr($string_mb, $needle_mb_lower, false); 43 var_dump(mb_strstr($string_mb, $needle_mb_upper)); 44 var_dump(mb_strstr($string_mb, $needle_mb_mixed)); 49 *** Testing mb_strstr() : variation ***
|
H A D | mb_strstr_variation5.phpt | 2 Test mb_strstr() function : variation - multiple needles 6 function_exists('mb_strstr') or die("skip mb_strstr() is not available in this build"); 10 echo "*** Testing mb_strstr() : variation ***\n"; 23 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, false))); 24 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, true))); 27 $res = mb_strstr($string_mb, $needle_mb, false); 34 $res = mb_strstr($string_mb, $needle_mb, true); 45 *** Testing mb_strstr() : variation ***
|
H A D | mb_str_functions_opt-parameter.phpt | 11 echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n";
|
H A D | mb_str_unknown_encoding.phpt | 108 mb_strstr('coudenys', 'cou', false, 'UTF-0'); 161 mb_strstr(): Argument #4 ($encoding) must be a valid encoding, "UTF-0" given
|
/PHP-8.0/ext/mbstring/ |
H A D | mbstring_arginfo.h | 321 ZEND_FUNCTION(mb_strstr); 415 ZEND_FE(mb_strstr, arginfo_mb_strstr)
|
H A D | mbstring.stub.php | 36 function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding… function
|
H A D | mbstring.c | 2062 PHP_FUNCTION(mb_strstr) in PHP_FUNCTION() argument
|
/PHP-8.0/ |
H A D | UPGRADING | 385 mb_strripos(), mb_strstr(), mb_stristr(), mb_strrchr() and mb_strrichr() can
|
Completed in 25 milliseconds