foreach loop plz
hi dears this is yasir plz i m new with php i want to learn about FOREACH loop and use of foreach loop .
thanks waiting for reply ..............
The foreach loop is used to loop through arrays.
foreach ($array as $value)
code to be executed;
For every loop iteration, the value of the current array element is assigned to $value and the array pointer is moved by one - so on the next loop iteration, you'll be looking at the next array value.
foreach ($x as $value)
echo $value . "<br>";
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)