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
The goal of this article is for you to thoroughly understand PHP arrays. We’ll cover what they are, and highlight a few less-known things that even experienced PHP developers may not have known or realized.