Possible Duplicate:
convert string to 2D array using php
I have the string like the following:
01,03,02,15|05,04,06,10|07,09,08,11|12,14,13,16
how can I convert the above string to a defined array like the one below:
$a[0] = array('column' => array("row1" => "01", "row2"=> "05", "row3" => "07", "row4" =>"12"));
$a[1] = array('column' => array("row1" => "03", "row2"=> "04", "row3" => "09", "row4" =>"14"));
$a[2] = array('column' => array("row1" => "02", "row2"=> "06", "row3" => "08", "row4" =>"13"));
$a[3] = array('column' => array("row1" => "15", "row2"=> "10", "row3" => "11", "row4" =>"16"));
I know I should use explode function but not sure how exactly it should be implemented for this, any help would be greatly appreciated, thanks!