PHP Array Functions and C Syntax Loop Methods Few People Even Know.

Jason Knight
Level Up Coding
Published in
10 min readDec 8, 2020

--

Note, sorry but this article is going to skip between languages a bit.

Everyone knows about count, for and foreach. They’re the staple of programming array loops. If you work in PHP, you likely know what they do and how to use them…

But what aboutcurrent, end, key, last, next, prev, and reset?

Much less how if/do/while can be used to smartly make loops in most all C syntax languages?

--

--

Accessibility and Efficiency Consultant, Web Developer, Musician, and just general pain in the arse