PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

implode

Tags: PHP 5.x PHP 7.x PHP 8.x

implode — Join array elements with a string.

Description

implode(
    string $separator,
array $array
): string
Join array elements with a separator string.

Parameters

separator
Defaults to an empty string.
array
The array of strings to implode.

Return Values

Returns a string containing a string representation of all the array elements in the same order, with the separator string between each element.