err... sorry, the second line should be $array = explode(':', $string);
Cristian Cristian Lavaque wrote: > yup > > you could do something like this > > $string = 'field_value1:field_value2:field_value3'; > $array = explode(':', $str); > foreach($array as $substring){ > list($field, $value) = explode('_', $substr); > $$field = $value; > } > > hope this helps > > Cristian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php