Tags: PHP | Views: 534
Now its time to get aware with different php loops in php. Followin is the information about do..while loop, while loop, for loop and foreach.
Basic Loop Concept
You may think how loop is useful and why it is needed ? Here is simple way of explanation. If you want to add 10 numbers, you can do it using arithmetic operator and variables.
$total = 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10;
Now if you want to add 100 numbers, 1000 numbers and even more. Will you write such a long …