Join array elements with a string.
Syntax
implode(string $separator, array $array): stringExample
Enter values below to update the example in real time.
fruits→echo→implode→apple→banana→cherry→$fruits = ["apple", "banana", "cherry"];
echo implode(", ", $fruits); // apple, banana, cherry