Course lesson

Use an array key to determine current iteration

One can expand on PHP's foreach loop by using array indexes, which allow you to control the location of PHP elements.

Duration
1 min
Access
Included
Transcript
Retained from source evidence

One can expand on PHP's foreach loop by using array indexes, which allow you to control the location of PHP elements.