PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php  
$colors = array("red", "green", "blue", "yellow");

foreach ($colors as $value) {
  echo "$value <br>";
}
?>
 

</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy