Y
Hacker News
new
|
ask
|
show
|
jobs
by
oneeyedpigeon
4263 days ago
Surely you should only foreach() if you're working with a hash/map? Would a classic for($c=0, $l=count($arr); $c<$l; $c++) suffer from any similarly-exploitable problem?