PHP Foreach: All You Need to Know
One of the most-used functions in my life with PHP is foreach. Partly, this is because it’s just an exquisitely named function, and it maps well to how I think. Partly this is because it’s kind of the backbone of a webpage: iterate through a set of things, operating on some selectively, and then display them all.
A Thorough Introduction to PHP Arrays
This article is an in-depth introduction to PHP arrays. We’ll cover what PHP arrays are, how to create and work with them, and a few less-known topics that even experienced PHP developers may find informative.