Till now, we have learned quite a bit of PHP and are capable of writing some decent applications too. Now in this part of the course, we will learn about two very important things in almost any programming language – loops and arrays.
Firstly, you might be thinking what “loops” are and why do we need to learn it? Looping is nothing but a way to save yourself from the tedious job of doing many repetitive tasks. Quite often we need to perform a particular action (or a set of actions) repeatedly for a large no. of times and it is sometimes absolutely impossible to do that manually. Looping is just the way to automate the job of performing a task repeatedly for any no. of times with ease. Continue reading