Looping in php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Looping in php

<?php $colors = array("red","green","blue","yellow"); foreach ($colors as $value) { echo "$value <br>"; } ?>

29th Jan 2017, 5:11 PM
Atul kumar
Atul kumar - avatar
2 Answers
+ 1
This will be the Output red green blue yellow
29th Jan 2017, 5:57 PM
Arpan Lunawat
Arpan Lunawat - avatar
+ 1
yes bro
29th Jan 2017, 6:11 PM
Atul kumar
Atul kumar - avatar