PHP implode () function
PHP String function
Definition and usage
The implode () function combines array elements into a single string.
The syntax implode (separator,array) parameter description is separator optional. Specifies what is placed between the elements of the array. The default is "" (an empty string). Array required. An array to combine as a string. Description
Although the separator parameter is optional. However, for backwards compatibility, it is recommended that you use two parameters.
Hints and Notes
Note: Implode () can receive two parameter sequences. But for historical reasons, explode () is not working. You must ensure that the separator parameter is not preceded by a string parameter.
Example
Output:
Hello world! Beautiful day!
Youth should be like this Bloom game test: The Three Kingdoms Period who is your best brother!! You have to believe in the constellation secrets