![]() We will learn about arrays in detail in upcoming tutorial. This loop only works with arrays and you do not have to initialise any loop counter or set any condition for exiting from the loop, everything is done implicitly(internally) by the loop. The foreach loop in PHP is used to access key-value pairs of an array. Here is a simple example of nested for loops. Increase the loop counter value by 10 for each iteration PHP Exercises. We can also use a for loop inside another for loop. The while loop executes a block of code as long as the specified condition is true.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |