SlideShare a Scribd company logo
WHILE LOOPS
• PHP while loops execute a block of
code while the specified condition is
true.
• while (condition is true) {
code to be executed;
}
• Print 0-4 on the screen.
• The do...while loop will always
execute the block of code once, it will
then check the condition, and repeat
the loop while the specified condition
is true.

More Related Content

PPTX
Search engine optimisation(seo) digital
PPTX
Loops PHP 04
ODP
My self learn -Php
PPTX
Php Loop
PPTX
Looping statement
PDF
PHP Loops and PHP Forms
PPTX
What is Kernel, basic idea of kernel
PPTX
Loops Basics
Search engine optimisation(seo) digital
Loops PHP 04
My self learn -Php
Php Loop
Looping statement
PHP Loops and PHP Forms
What is Kernel, basic idea of kernel
Loops Basics

More from Suraj Motee (19)

PPTX
Multimedia.pptx
PPTX
Compression techniques for sound
PPTX
Lesson 21: Compression techniques for images
PPTX
Lesson 20: Principles of data compression
PPTX
Lesson 18- Video & File extension
PPTX
Lesson 17- Representing text
PPTX
Lesson 16- Vector Images
PDF
Cambridge O-Level Computer Science-2210
PDF
Functions Worksheet
PPTX
Pure Mathematics 1- Functions
PPTX
Functions in PHP
PPTX
For loops in PHP
PPTX
Associative arrays in PHP
PPTX
Operators
PPTX
String Manipulation in PHP
PPTX
Echo and print in PHP
PPTX
Introduction to php
PPTX
Data types
PPTX
Variables
Multimedia.pptx
Compression techniques for sound
Lesson 21: Compression techniques for images
Lesson 20: Principles of data compression
Lesson 18- Video & File extension
Lesson 17- Representing text
Lesson 16- Vector Images
Cambridge O-Level Computer Science-2210
Functions Worksheet
Pure Mathematics 1- Functions
Functions in PHP
For loops in PHP
Associative arrays in PHP
Operators
String Manipulation in PHP
Echo and print in PHP
Introduction to php
Data types
Variables
Ad

Recently uploaded (20)

PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Presentation on HIE in infants and its manifestations
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Lesson notes of climatology university.
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
Computing-Curriculum for Schools in Ghana
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Anesthesia in Laparoscopic Surgery in India
Microbial diseases, their pathogenesis and prophylaxis
A systematic review of self-coping strategies used by university students to ...
202450812 BayCHI UCSC-SV 20250812 v17.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
VCE English Exam - Section C Student Revision Booklet
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
01-Introduction-to-Information-Management.pdf
Institutional Correction lecture only . . .
Presentation on HIE in infants and its manifestations
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
GDM (1) (1).pptx small presentation for students
Abdominal Access Techniques with Prof. Dr. R K Mishra
Lesson notes of climatology university.
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Computing-Curriculum for Schools in Ghana
Ad

While Loops in PHP

  • 2. • PHP while loops execute a block of code while the specified condition is true. • while (condition is true) { code to be executed; }
  • 3. • Print 0-4 on the screen.
  • 4. • The do...while loop will always execute the block of code once, it will then check the condition, and repeat the loop while the specified condition is true.