हिंदी

What is For each loop in PHP?

Advertisements

प्रश्न

What is For each loop in PHP?

टिप्पणी लिखिए
Advertisements

उत्तर

  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
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Looping Structure - Evaluation - PART – II [पृष्ठ ११८]
Advertisements
Share
Notifications



      Forgot password?
Use app×