Lines Matching refs:strstr

2 Test strstr() function
5 echo "*** Testing basic functionality of strstr() ***\n";
6 var_dump( strstr("test string", "test") );
7 var_dump( strstr("test string", "string") );
8 var_dump( strstr("test string", "strin") );
9 var_dump( strstr("test string", "t s") );
10 var_dump( strstr("test string", "g") );
11 var_dump( md5(strstr("te".chr(0)."st", chr(0))) );
12 var_dump( strstr("tEst", "test") );
13 var_dump( strstr("teSt", "test") );
14 var_dump( strstr("", "") );
15 var_dump( strstr("a", "") );
16 var_dump( strstr("", "a") );
19 echo "\n*** Testing strstr() with various needles ***";
60 var_dump( strstr($string, $needles[$i]) );
87 var_dump(strstr("$obj_string", "$obj_needle"));
91 var_dump( strstr("", NULL) );
92 var_dump( strstr(NULL, NULL) );
93 var_dump( strstr("a", NULL) );
94 var_dump( strstr("/x0", "0") ); // Hexadecimal NUL
109 var_dump( strstr($string, "abcd") );
110 var_dump( strstr($string, "1234") );
115 var_dump( strstr($str, "\0") );
116 var_dump( strstr($str, "0") );
123 var_dump( strstr("Hello, world", "$needle") ); // works
124 var_dump( strstr("Hello, world'S", "$needle'S") ); // works
125 var_dump( strstr("Hello, worldS", "$needleS") ); // won't work
128 var_dump( strstr("Hello, worldS", "${needle}S") ); // works
129 var_dump( strstr("Hello, worldS", "{$needle}S") ); // works
132 var_dump( strstr($string, ""));
133 var_dump( strstr("a", "b", "c") ); // args > expected
140 *** Testing basic functionality of strstr() ***
153 *** Testing strstr() with various needles ***
299 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in %s on …
302 Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in %s o…
304 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in %s on …
307 Deprecated: strstr(): Passing null to parameter #2 ($needle) of type string is deprecated in %s on …