My data variable is following:
canv = 2,3,4,5:::canp = 2,3,4:::canpr = 2,3,4:::canpp = 2,3,4:::all = 2,3,4
I need it to transform to an array which should look following:
$arr = array(
"canv" => array("2", "3", "4", "5"),
"canp" => array("2", "3", "4"),
"canpr" => array("2", "3", "4"),
"canpp" => array("2", "3", "4"),
"all" => array("2", "3", "4")
);
Can you help me?