On this page
HTTP & JSON
jsonJoinArray
$jsonJoinArray[]
Joins all elements of a JSON array into a single string using the specified separator.
Syntax
$jsonJoinArray[key;separator]
$jsonJoinArray combines all elements of a JSON array into a single string with a separator between each element — equivalent to JavaScript’s Array.join(). This is the inverse of $jsonArray which splits a string into an array. Use \n for line breaks in embeds, or custom separators like bullets or HTML tags.