if i have the following array -
$array = array ("1" => "50", "5" => "100", "12" => "2");
i would i go about performing a loop so that my input would be in the following format producing results for 1-13
1=50 - rcvd from array
2=0
3=0
4=0
5=100 -rcvd from array
..
12= 2 - rcvd from array
13 = 0
i how to run through a loop from 1-13 but how would i include the array amounts and ignore if not in the array ?????
???? puzzled i have searched through the manual and none of the functions such as array_values, array_slice seem to do what i want ?????