English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Explain the use of for each loop in PHP. - Computer Applications

Advertisements
Advertisements

Question

Explain the use of for each loop in PHP.

Short Note

Solution

  1. The foreach loop works only on arrays,
  2. It is used to loop through each key/value pair in an array.
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 10. | Page 118
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×