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


Tell me about foreach

12/21/2016 3:00:06 PM


3 Answers

New Answer


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


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.


foreach will loop data in array