Move to foreach instead of while list each

Adding foreach($aHash as $key => $val);  instead of while(list($key,$val) = each($aHash));
Merge pull request #13 from acidvertigo/patch-13

Move to foreach instead of while list each