programming-examples/php/Basics/Print an array using foreach in php.php

11 lines
107 B
PHP
Raw Normal View History

2019-11-18 14:44:36 +01:00
<?php
$arr = array(10,20,30,40,50);
foreach($arr as $v)
{
echo $v;
echo "<br>";
}
?>