Lines Matching refs:implode

2 Test implode() function
5 echo "*** Testing implode() for basic operations ***\n";
14 /* loop to output string with ', ' as $glue, using implode() */
16 var_dump( implode(', ', $array) );
20 echo "\n*** Testing implode() with variations of glue ***\n";
50 var_dump(implode($glue, $pieces));
58 echo "\n*** Testing implode() on empty string ***\n";
60 implode("");
66 echo "\n*** Testing implode() on sub-arrays ***\n";
68 var_dump(implode("TEST", $sub_array));
70 var_dump(implode(array(1, 2, 3, 4), $sub_array));
75 var_dump( implode(2, $sub_array) );
80 echo "\n*** Testing implode() on objects ***\n";
93 var_dump( implode(",", $arr) );
107 var_dump( implode("::", $resources) );
113 var_dump( implode("glue") );
120 var_dump( implode("glue",1234) );
127 var_dump( implode("glue", NULL) );
134 var_dump( implode(",", array(NULL)) );
141 var_dump( implode(12, "pieces") );
148 var_dump( implode(NULL, "abcd") );
160 *** Testing implode() for basic operations ***
218 *** Testing implode() with variations of glue ***
226 implode(): Argument #1 ($separator) must be of type string, array given
238 *** Testing implode() on empty string ***
239 implode(): Argument #1 ($array) must be of type array, string given
241 *** Testing implode() on sub-arrays ***
247 implode(): Argument #1 ($separator) must be of type string, array given
254 *** Testing implode() on objects ***
269 implode(): Argument #1 ($array) must be of type array, string given
270 implode(): Argument #2 ($array) must be of type ?array, int given
271 implode(): Argument #1 ($array) must be of type array, string given
273 implode(): Argument #2 ($array) must be of type ?array, string given
275 Deprecated: implode(): Passing null to parameter #1 ($separator) of type array|string is deprecated…
276 implode(): Argument #2 ($array) must be of type ?array, string given