English

Define for loop in PHP.

Advertisements

Question

Define for loop in PHP.

Definition
Advertisements

Solution

For loop is an important functional looping system which is used for iteration logics when the programmer know in advance how many times the loop should run.

Syntax:

for (init counter; test counter; increment counter)
{
code to be executed;
}
shaalaa.com
Looping Structure
  Is there an error in this question or solution?
Chapter 7: Looping Structure - Evaluation - PART – II [Page 118]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 12 TN Board
Chapter 7 Looping Structure
Evaluation - PART – II | Q 2. | Page 118
Advertisements
Share
Notifications



      Forgot password?
Use app×