Split values of array recursively
Posted: Sun Sep 26, 2004 5:15 pm
Hi Developers
I have the following array:
I extracted them from an html file using preg_match_all(). What I would like to do is to split these numbers up and store them in a new two dimensional array as follows:
Can I do this with a for loop? I just can't seem to figure this one out! 
I have the following array:
Code: Select all
numsї0]ї0] = "8 6 3 17";
numsї0]ї1] = "5 5 4 14";
numsї0]ї2] = "5 3 6 14";Code: Select all
new_numї0]ї0] = 8;
new_numї0]ї1] = 6;
new_numї0]ї2] = 3;
new_numї0]ї3] = 17;
new_numї1]ї0] = 5;
new_numї1]ї1] = 5;
new_numї1]ї2] = 4;
new_numї1]ї3] = 14;
new_numї2]ї0] = 5;
new_numї2]ї1] = 3;
new_numї2]ї2] = 6;
new_numї2]ї3] = 14;