I tried print_r($arr) and it outputs:Array ( [0] => img/colors/0,0,0,black.gif [1] => img/colors/0,0,128,navy.gif [2] => img/colors/0,0,139,darkblue.gif [3] => img/colors/0,0,205,mediumblue.gif [4] => img/colors/0,0,255,blue.gif [5] => img/colors/0,100,0,darkgreen.gif [6] => img/colors/0,128,0,green.gif [7] =>..............and so on till 120. But why when i ask to output $arr['5'] it outputs nothing???