$glue
, array $pieces
)
Join array elements with a glue
string.
implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments.