Searched refs:mb_strstr (Results 1 – 11 of 11) sorted by relevance
/PHP-8.1/ext/mbstring/tests/ |
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_basic.phpt | 2 Test mb_strstr() function : basic functionality 7 echo "*** Testing mb_strstr() : basic functionality ***\n"; 16 var_dump(bin2hex(mb_strstr($string_ascii, 'd', false, 'ISO-8859-1'))); 17 var_dump(bin2hex(mb_strstr($string_ascii, 'd'))); 18 var_dump(bin2hex(mb_strstr($string_ascii, 'd', true))); 22 var_dump(mb_strstr($string_ascii, '123')); 26 var_dump(bin2hex(mb_strstr($string_mb, $needle1))); 27 var_dump(bin2hex(mb_strstr($string_mb, $needle1, false, 'utf-8'))); 28 var_dump(bin2hex(mb_strstr($string_mb, $needle1, true))); 33 var_dump(mb_strstr($string_mb, $needle2)); [all …]
|
H A D | mb_strstr_error2.phpt | 2 Test mb_strstr() function : error conditions 7 echo "*** Testing mb_strstr() : error conditions ***\n"; 10 echo "\n-- Testing mb_strstr() with unknown encoding --\n"; 17 var_dump( mb_strstr($haystack, $needle, $part, $encoding) ); 24 *** Testing mb_strstr() : error conditions *** 26 -- Testing mb_strstr() with unknown encoding -- 27 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 15 var_dump(mb_strstr($string_ascii, '', false, 'ISO-8859-1')); 16 var_dump(mb_strstr($string_ascii, '')); 17 var_dump(mb_strstr($string_ascii, '', true)); 20 var_dump(mb_strstr($string_mb, '')); 21 var_dump(mb_strstr($string_mb, '', false, 'utf-8')); 22 var_dump(mb_strstr($string_mb, '', true));
|
H A D | mb_strstr_variation6.phpt | 2 Test mb_strstr() function : variation - case sensitivity 7 echo "*** Testing mb_strstr() : variation ***\n"; 25 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii_lower))); 27 var_dump(mb_strstr($string_ascii, $needle_ascii_upper)); 28 var_dump(mb_strstr($string_ascii, $needle_ascii_mixed)); 32 $res = mb_strstr($string_mb, $needle_mb_lower, false); 40 var_dump(mb_strstr($string_mb, $needle_mb_upper)); 41 var_dump(mb_strstr($string_mb, $needle_mb_mixed)); 46 *** Testing mb_strstr() : variation ***
|
H A D | mb_strstr_variation5.phpt | 2 Test mb_strstr() function : variation - multiple needles 7 echo "*** Testing mb_strstr() : variation ***\n"; 20 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, false))); 21 var_dump(bin2hex(mb_strstr($string_ascii, $needle_ascii, true))); 24 $res = mb_strstr($string_mb, $needle_mb, false); 31 $res = mb_strstr($string_mb, $needle_mb, true); 42 *** Testing mb_strstr() : variation ***
|
H A D | mb_str_functions_opt-parameter.phpt | 11 echo mb_strstr('foobarbaz', 'ba', null, 'UTF-8') . "\n"; 32 Deprecated: mb_strstr(): Passing null to parameter #3 ($before_needle) of type bool is deprecated i…
|
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.1/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 | 51 function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding… function
|
H A D | mbstring.c | 2053 PHP_FUNCTION(mb_strstr) in PHP_FUNCTION() argument
|
Completed in 44 milliseconds