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

11 lines
107 B
PHP
Raw Normal View History

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