Searched refs:substr_count (Results 1 – 14 of 14) sorted by relevance
/php-src/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") ); 10 var_dump( substr_count($str, "t", "5", "10") ); 18 var_dump(substr_count($str, chr(128))); 19 var_dump(substr_count($str, chr(255))); 20 var_dump(substr_count($str, chr(256))); 33 var_dump(substr_count($string, "abcd")); 34 var_dump(substr_count($string, "1234")); 39 var_dump(substr_count($str, "\0")); 40 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-src/ext/zlib/tests/ |
H A D | compress_zlib_wrapper.phpt | 9 $pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../'));
|
/php-src/ext/mbstring/tests/ |
H A D | bug43993.phpt | 2 Bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles)
|
/php-src/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-src/ext/phar/ |
H A D | makestub.php | 12 $n = str_repeat("\n", substr_count($token[1], "\n"));
|
/php-src/ext/standard/ |
H A D | basic_functions.stub.php | 2593 function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int …
|
H A D | basic_functions_arginfo.h | 2573 ZEND_FUNCTION(substr_count);
|
H A D | string.c | 5670 PHP_FUNCTION(substr_count) argument
|
/php-src/Zend/ |
H A D | zend_vm_gen.php | 555 $line_no += substr_count($s, "\n");
|
Completed in 59 milliseconds