How foreach actually works in PHP?

Hi I'm bit confused about how foreach works technically in PHP. Is it directly using the source array or is it working with a copy of the source array?

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion