Lines Matching refs:str_starts_with
2 str_starts_with() function - unit tests for str_starts_with()
6 var_dump(str_starts_with($testStr, "beginning"));
7 var_dump(str_starts_with($testStr, "Beginning"));
8 var_dump(str_starts_with($testStr, "eginning"));
9 var_dump(str_starts_with($testStr, $testStr));
10 var_dump(str_starts_with($testStr, $testStr.$testStr));
11 var_dump(str_starts_with($testStr, ""));
12 var_dump(str_starts_with("", ""));
13 var_dump(str_starts_with("", " "));
14 var_dump(str_starts_with($testStr, "\x00"));
15 var_dump(str_starts_with("\x00", ""));
16 var_dump(str_starts_with("\x00", "\x00"));
17 var_dump(str_starts_with("\x00a", "\x00"));
18 var_dump(str_starts_with("a\x00bc", "a\x00b"));
19 var_dump(str_starts_with("a\x00b", "a\x00d"));
20 var_dump(str_starts_with("a\x00b", "z\x00b"));
21 var_dump(str_starts_with("a", "a\x00"));
22 var_dump(str_starts_with("a", "\x00a"));