Home
last modified time | relevance | path

Searched refs:substr_count (Results 1 – 14 of 14) sorted by relevance

/php-src/ext/standard/tests/strings/
H A Dsubstr_count_basic.phpt2 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 Dsubstr_count_variation_001.phpt2 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 Dsubstr_count_variation_002.phpt2 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 Dsubstr_count_error.phpt2 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 Dbug74041.phpt2 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 Dbug40754.phpt14 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 Dcompress_zlib_wrapper.phpt9 $pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../'));
/php-src/ext/mbstring/tests/
H A Dbug43993.phpt2 Bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles)
/php-src/sapi/cli/tests/
H A Dcli_process_title_windows.phpt53 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 Dmakestub.php12 $n = str_repeat("\n", substr_count($token[1], "\n"));
/php-src/ext/standard/
H A Dbasic_functions.stub.php2593 function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int …
H A Dbasic_functions_arginfo.h2573 ZEND_FUNCTION(substr_count);
H A Dstring.c5670 PHP_FUNCTION(substr_count) argument
/php-src/Zend/
H A Dzend_vm_gen.php555 $line_no += substr_count($s, "\n");

Completed in 59 milliseconds