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";
52 var_dump(implode($glue, $pieces));
60 echo "\n*** Testing implode() on empty string ***\n";
62 implode("");
68 echo "\n*** Testing implode() on sub-arrays ***\n";
70 var_dump(implode("TEST", $sub_array));
72 var_dump(implode(array(1, 2, 3, 4), $sub_array));
77 var_dump( implode(2, $sub_array) );
82 echo "\n*** Testing implode() on objects ***\n";
95 var_dump( implode(",", $arr) );
109 var_dump( implode("::", $resources) );
115 var_dump( implode("glue") );
122 var_dump( implode("glue",1234) );
129 var_dump( implode("glue", NULL) );
136 var_dump( implode(",", array(NULL)) );
143 var_dump( implode(12, "pieces") );
150 var_dump( implode(NULL, "abcd") );
162 *** Testing implode() for basic operations ***
220 *** Testing implode() with variations of glue ***
228 implode(): Argument #1 ($separator) must be of type string, array given
242 *** Testing implode() on empty string ***
243 implode(): Argument #1 ($pieces) must be of type array, string given
245 *** Testing implode() on sub-arrays ***
251 implode(): Argument #1 ($separator) must be of type string, array given
258 *** Testing implode() on objects ***
273 implode(): Argument #1 ($pieces) must be of type array, string given
274 implode(): Argument #2 ($array) must be of type ?array, int given
275 implode(): Argument #1 ($pieces) must be of type array, string given
277 implode(): Argument #2 ($array) must be of type ?array, string given
278 implode(): Argument #2 ($array) must be of type ?array, string given