Menu
$string = “1~2~3 4~5~6”;
What i want to end up with is:
$array[0][0] = 1;
$array[0][1] = 2;
$array[0][2] = 3;
$array[1][0] = 4;
$array[1][1] = 5;
$array[1][2] = 6;
I have tried all sorts of combinations of $array = explode(“~”, $string) etc but i cannot get it to work.
Please help if you’re able to ?