explode

(FW >= 1.0)

explode - turn a string into an array

Description

array explode( string value string delimiter)
Turns a string into an array by separating at a delimiter character

Parameters

value

string to be separated

delimiter

delimiter character to use for separation

Return Value

array of elements

Examples

<? 

$mylist="one,two,three,four";
$myarray=explode($mylist,",");
print_r($myarray);
/* result is:
p0 = ARRAY STRING 0 => one STRING 1 => two STRING 2 => three STRING 3 => four
*/
?>