- ⌂ Text
- Directives
#IMPLODE
Return a string formed by joining each element in an array with a string delimiter.
Prototype
#IMPLODE($delimiter, $array)
Parameters
- delimiter - The boundary string.
- array - The input array or collection.
Return
Returns a string created by joining array elements in the array
parameter, separating each element with the delimiter
.
Example
#/ Produce a sentence from an array of words.
#IMPLODE(' ', ['This', 'is', 'a', 'test.'])