PHP TutorialWhat is PHP Environment Setup of PHP PHP Syntax PHP Comments PHP Echo & print PHP Variables PHP Scope Variables PHP $ and $$ Variable PHP Constants PHP Operators PHP Data Types
PHP Conditional Statements
PHP Loop Type
PHP ArraysPHP String PHP Functions
PHP FormsForm Intro Get & Post Form Validation / Required PHP Complete Form
PHP AdvancedPHP Include / Require PHP Date & Time PHP Session PHP Cookies PHP File Handling PHP Open File PHP Read File PHP Write File PHP Append File PHP Delete File PHP File Upload PHP Sending Mail PHP Error Handling
What is Loop
Loops in PHP are used to execute the same block of code a specified number of times. PHP supports following four loop types.
In PHP, we have the following loop types:
for - loops through a block of code a specified number of times.
while- loops through a block of code as long as the specified condition is true.
do...while- loops through a block of code once, and then repeats the loop as long as the specified condition is true.
foreach - loops through a block of code for each element in an array.
SEARCH POST HERE
Subscribe My YouTube Channel
Join Our Telegram Channel & Support Eachother
Elevenstech Web Tutorials
Elevenstech Web Tutorials helps you learn coding skills and enhance your skills you want.
As part of Elevenstech's Blog, Elevenstech Web Tutorials contributes to our mission of “helping people learn coding online”.
Subscribe to get the latest updates from Elevenstech Web Tutorials and stay up to date