Searched refs:substr_count (Results 1 – 15 of 15) sorted by relevance
/PHP-8.0/ext/standard/tests/strings/ |
H A D | substr_count_basic.phpt | 2 Test substr_count() function (basic) 8 substr_count("", ""); 13 substr_count("a", ""); 17 var_dump(substr_count("", "a")); 18 var_dump(substr_count("", "a")); 19 var_dump(substr_count("", chr(0))); 22 var_dump(substr_count($a, "bca")); 25 var_dump(substr_count($a, "bca")); 26 var_dump(substr_count($a, "bca", 200)); 28 var_dump(substr_count($a, "bca", 200, 50)); [all …]
|
H A D | substr_count_variation_001.phpt | 2 Test substr_count() function (variation - 1) 9 var_dump( substr_count($str, "t", "5") ); 13 var_dump( substr_count($str, "I", NULL) ); 22 var_dump(substr_count($str, chr(128))); 23 var_dump(substr_count($str, chr(255))); 24 var_dump(substr_count($str, chr(256))); 37 var_dump(substr_count($string, "abcd")); 38 var_dump(substr_count($string, "1234")); 43 var_dump(substr_count($str, "\0")); 44 var_dump(substr_count($str, "\x000")); [all …]
|
H A D | substr_count_variation_002.phpt | 2 Test substr_count() function (variation - 2) 9 var_dump(substr_count($str, chr(128))); 10 var_dump(substr_count($str, chr(255))); 11 var_dump(substr_count($str, chr(256))); 24 var_dump(substr_count($string, "abcd")); 25 var_dump(substr_count($string, "1234")); 30 var_dump(substr_count($str, "\0")); 31 var_dump(substr_count($str, "\x000")); 32 var_dump(substr_count($str, "0"));
|
H A D | substr_count_error.phpt | 2 Test substr_count() function (error conditions) 11 substr_count($str, "t", -20); 18 substr_count($str, "t", 25); 26 substr_count($str, "i", 5, 7); 33 substr_count($str, "t", 2, -20); 43 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 44 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 45 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack) 46 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
|
H A D | bug74041.phpt | 2 Bug #74041: substr_count with length=0 broken 6 var_dump(substr_count("aaa", "a", 0, 0)); 7 var_dump(substr_count("", "a", 0, 0));
|
H A D | bug40754.phpt | 14 var_dump(substr_count("abcde", "abc", $v, $v)); 32 substr_count("abcde", "abc", $v, 1); 38 substr_count("abcde", "abc", 1, $v); 83 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 86 substr_count(): Argument #3 ($offset) must be contained in argument #1 ($haystack) 87 substr_count(): Argument #4 ($length) must be contained in argument #1 ($haystack)
|
/PHP-8.0/ext/zlib/tests/ |
H A D | compress_zlib_wrapper.phpt | 9 $pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../'));
|
/PHP-8.0/ext/mbstring/tests/ |
H A D | bug43993.phpt | 2 Bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles)
|
/PHP-8.0/sapi/cli/tests/ |
H A D | cli_process_title_windows.phpt | 53 if (substr_count($loaded_title, $original_title, 0) == 1) 63 if (substr_count($read_title, $original_title, 0) == 1)
|
/PHP-8.0/ext/phar/ |
H A D | makestub.php | 12 $n = str_repeat("\n", substr_count($token[1], "\n"));
|
/PHP-8.0/ext/standard/ |
H A D | basic_functions.stub.php | 670 function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int … function
|
H A D | basic_functions_arginfo.h | 2505 ZEND_FUNCTION(substr_count); 3142 ZEND_FE(substr_count, arginfo_substr_count)
|
H A D | string.c | 5390 PHP_FUNCTION(substr_count) argument
|
/PHP-8.0/Zend/ |
H A D | zend_vm_gen.php | 588 $line_no += substr_count($s, "\n");
|
/PHP-8.0/ |
H A D | UPGRADING | 553 . The length argument for substr(), substr_count(), substr_compare(), and
|
Completed in 55 milliseconds