According to his notation he is getting separate, which is a bit odd.
After alittle more thought i came up with this convoluted script (providing you are getting 7 separate arrays):
WARNING: hackish code, it may blind you! YOU HAVE BEEN WARNED!
PHP Code:
$arr1 = array ( 0 => 1, 1 => 4 );
$arr2 = array ( 0 => 2, 1 => 19 );
$arr3 = array ( 0 => 4, 1 => 18 );
$arr4 = array ( 0 => 5, 1 => 5 );
$arr5 = array ( 0 => 6, 1 => 7 );
$arr6 = array ( 0 => 7, 1 => 19 );
$arr7 = array ( 0 => 9, 1 => 6 );
for($i=0; $i < 7;$i++)
{
eval('${"mUnit" . $arr'.($i+1).'[0]} = $arr'.($i+1).'[1];');
}
echo 'Unit1: ', $mUnit1, '<br />',
'Unit2: ', $mUnit2, '<br />',
'Unit4: ', $mUnit4, '<br />',
'Unit5: ', $mUnit5, '<br />',
'Unit6: ', $mUnit6, '<br />',
'Unit7: ', $mUnit7, '<br />',
'Unit9: ', $mUnit9;
outputs:
Unit1: 4
Unit2: 19
Unit4: 18
Unit5: 5
Unit6: 7
Unit7: 19
Unit9: 6
there are a few things about this however:
1. eval is slow and can be a security risk
2. you are limited to 7 arrays unless you manually change the loop
3. its barely readable
4. i have a reasonably large headache now
I think the better way is to re-think how you retrieve your data (assuming this is how you are retrieving it currently, i apologise if i have misunderstood).