English

Write Syntax of For each loop in PHP.

Advertisements

Question

Write Syntax of For each loop in PHP.

Short/Brief Note
Advertisements

Solution

for each ($array as $value)
{
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]
Advertisements
Share
Notifications



      Forgot password?
Use app×