Tell me about foreach | SoloLearn: Learn to code for FREE!

+1

Tell me about foreach

12/21/2016 3:00:06 PM

srimathi.m.c

3 Answers

New Answer

+7

Foreach supports iteration over different kinds of values. It can be array or traversable objects.

0

u use it for looping it has a start and an end point, for example u can use for each to print a sequence from 1 to 10.

0

foreach will loop data in array