Lines Matching refs:implode
2 Test implode() function
5 echo "*** Testing implode() for basic operations ***\n";
15 /* loop to output string with ', ' as $glue, using implode() */
17 var_dump(implode(', ', $array));
21 echo "\n*** Testing implode() with variations of glue ***\n";
51 var_dump(implode($glue, $pieces));
59 echo "\n*** Testing implode() on empty string ***\n";
61 implode("");
67 echo "\n*** Testing implode() on sub-arrays ***\n";
69 var_dump(implode("TEST", $sub_array));
71 var_dump(implode(array(1, 2, 3, 4), $sub_array));
76 var_dump(implode(2, $sub_array));
81 echo "\n*** Testing implode() on objects ***\n";
94 var_dump(implode(",", $arr));
108 var_dump(implode("::", $resources));
117 *** Testing implode() for basic operations ***
180 *** Testing implode() with variations of glue ***
188 implode(): Argument #1 ($separator) must be of type string, array given
200 *** Testing implode() on empty string ***
201 implode(): If argument #1 ($separator) is of type string, argument #2 ($array) must be of type arra…
203 *** Testing implode() on sub-arrays ***
209 implode(): Argument #1 ($separator) must be of type string, array given
216 *** Testing implode() on objects ***