Hi,
I am trying to get 2 values from my array but at present i am only able to retrieve one.
function addArray(&$array, $id, $var)
{
$tempArray = array($id => $var);
$array = array_merge ($array, $tempArray);
}
$bbarray = array();
for ($i=0; $i < $feepercent_count; $i++)
{
$fees = explode("-", $feepercent[$i]);
$percent = $fees[0];
$amount = $fees[1];
addArray($bbarray, $amount, $amount);
}
Now when i print out the result using the following:
foreach ($bbarray as $k => $v)
{
print "\$bbarray[$k] => $v.\n";
}
I only get the $amount value but I want the $percent value also. Does anyone know how I can retrieve both?
Advance thanks on this one.