Looping in php | Sololearn: Learn to code for FREE!

+2

Looping in php

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

1/29/2017 5:11:30 PM

Atul kumar

2 Answers

New Answer

+1

This will be the Output red green blue yellow

+1

yes bro