implode

(FW >= 1.0)

implode - turn an array into a string

Description

string implode(array $array, string delimiter)
Turns an array into a string with the delimiter separating each element

Parameters

$array

array to be used

delimiter

delimiter character(s) to use for separation

Return Value

string containing concatenated array elements

Examples

<? 

$mylist=array("one","two","three","four");
$st = implode($mylist,"|");
print($st);
/* result is:
one|two|three|four
*/
?>