implode()
implode - Join array elements with a string
Syntax
string implode (
string $glue,
array $pieces,
array $pieces,
string $glue,
array $pieces,
array $pieces)
Arguments
- glue - Defaults to an empty string. This is not the preferred usage of implode() as glue would be the second parameter and thus, the bad prototype would be used.
- pieces - The array of strings to implode.
- pieces
- glue - Defaults to an empty string. This is not the preferred usage of implode() as glue would be the second parameter and thus, the bad prototype would be used.
- pieces - The array of strings to implode.
- pieces
Description
Join array elements with a glue string.
Version
PHP 4, 5
Return value
Returns a string containing a string representation of all the array elements in the same order, with the glue string between each element.