Core Function JoinKV
From Sputnik Wiki
JoinKV( <array>, <separator> )
Contents |
Description
Join an array (as keys and values) into a string with an optional separator.
Parameters
array
The array to join.
separator
Optional; A string to place between each array element.
Default is "\n" a newline.
Return Value
Success - The array merged into a string.
Failure - Returns an empty string.
Remarks
This does not alter the original array.
Example
$arr = array("foo" => 1, "bar" => 2, "testingFooBar" => 3); $joined = JoinKV($arr); PrintfC($joined); # 'foo 1 # bar 2 # testingFooBar 3'