On Mon, 2003-11-24 at 13:42, Dan Joseph wrote: > Hi, > > I must be missing something in this array. To me this makes no sense. > Here is it broken down... > > Declartion: > > $gtotals = array( > "CO1" => 0, > "CO2" => 0, > "CO3" => 0, > "CO4" => 0, > "CO5" => 0, > "CO6" => 0, > "CO7" => 0 > ); >
[snip] > > print_r results: > > Array > ( > [CO1] => 0 > [CO2] => 0 > [CO3] => 0 > [CO4] => 0 > [CO5] => 0 > [CO6] => 0 > [CO7] => 0 > [C01] => 15 > [C02] => 40 > [C03] => 50 > [C04] => 4 > [C05] => 4 > ) > > Now, the problem I'm having is that when I echo $array['C06'] and > $array['C07'] I'm getting "" (nothing..). Could someone point out how this > can be, and what I've done wrong? I think you might have some letter 'O's instead of the number 0. Notice that you have CO1 and C01 when you print_r. They are different keys. - Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php