PHP join() Function is used to join array elements into string.
The join() function is an alias of the implode() function.
Syntax :
implode(separator,array);
PHP join() Function returns string with separator between two array elements.
Parameter Values,
Parameter | Description |
separator | Optional. Join array elements with separator string. Default value for separator is an empty string. |
array | Required. The array to join to a string. |
Let's see below example to understand join() Function in details.
Comments