English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is For each loop in PHP? - Computer Applications

Advertisements
Advertisements

Question

What is For each loop in PHP?

Short Note

Solution

  1. For each loop is exclusively available in PHP.
  2. It works only with arrays. The loop iteration deepens on each KEY Value pair in the Array.
  3. For each, loop iteration the value of the current array element is assigned to $value variable and the array pointer is shifted by one, until it reaches the end of the array element.
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 3. | Page 118
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×