Foreach loop in php - Web Development
4 Views

Foreach loop in php

How to use for each loop

loops through a block of code foreach() element in an array. The foreach() loop is specially used for array .

Output of code

Name :- Dheeraj Singh
Email :- [email protected]
Phone :- 22393933
Address :- Mumbai
State :- Maharastra

Lets see another example of foreach loop

Output of code


Print Number is 100 
Print Number is 200 
Print Number is 300 
Print Number is 400 
Print Number is 500 
Print Number is 600 
Print Number is 700 
Print Number is 800

See our more tutorials on web development

Leave a Reply

Your email address will not be published. Required fields are marked *