Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: four minus four?
(Example: nine)

The Note You're Voting On

Mladen Janjetovic
12 years ago
Note that you can't use pointer here. It will reset the iteration counter in this case.
foreach($array as $key=>&$value) {...}


Use standard foreach instead
foreach($array as $key=>$value) {...}

<< Back to user notes page

To Top