No products in the cart.

What do you mean by looping? …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

What do you mean by looping? Explain different types of loop in PHP
  • 1 answers

Yogita Ingle 4 years, 3 months ago

A loop is a statement that repeats over and over, while a certain condition is true. Or, to state it another way, it runs until a condition is false. A condition is the value or state you are testing. For example, if you want to repeat the same math program 50,000 times, you can write a loop that runs until it has processed 50,000 times.

Loops in PHP are used to execute the same block of code a specified number of times. PHP supports following four loop types.

  • for − loops through a block of code a specified number of times.

  • while − loops through a block of code if and as long as a specified condition is true.

  • do...while − loops through a block of code once, and then repeats the loop as long as a special condition is true.

  • foreach − loops through a block of code for each element in an array.

http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers
What is mean by buffering in file handling?
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App