Home
last modified time | relevance | path

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

/PHP-8.0/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") );
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 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-8.0/ext/zlib/tests/
H A Dcompress_zlib_wrapper.phpt9 $pfx = str_repeat('../', substr_count($_SERVER['PHP_SELF'], '../'));
/PHP-8.0/ext/mbstring/tests/
H A Dbug43993.phpt2 Bug #43993 (mb_substr_count() behaves differently to substr_count() with overlapping needles)
/PHP-8.0/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-8.0/ext/phar/
H A Dmakestub.php12 $n = str_repeat("\n", substr_count($token[1], "\n"));
/PHP-8.0/ext/standard/
H A Dbasic_functions.stub.php670 function substr_count(string $haystack, string $needle, int $offset = 0, ?int $length = null): int … function
H A Dbasic_functions_arginfo.h2505 ZEND_FUNCTION(substr_count);
3142 ZEND_FE(substr_count, arginfo_substr_count)
H A Dstring.c5390 PHP_FUNCTION(substr_count) argument
/PHP-8.0/Zend/
H A Dzend_vm_gen.php588 $line_no += substr_count($s, "\n");
/PHP-8.0/
H A DUPGRADING553 . The length argument for substr(), substr_count(), substr_compare(), and

Completed in 55 milliseconds