Question: I'd like to explode a multi-line-string like this

```
color:red
material:metal

```

to an array like this

```
$array['color']=red
$array['material']=metal

```

any idea?

Answer: 
Try this 

```
$value = '1|a,2|b,3|c,4|d';
$temp = explode (',',$value);
foreach ($temp as $pair) 
{
    list ($k,$v) = explode ('|',$pair);
    $pairs[$k] = $v;
}

print_r($pairs);

```
explode first on line break. Prolly \n

Then explode each of the resulting array's items on : and set a new array to that key/value.