PHP program to display elements in array using foreach loop

PROGRAM
<?PHP
$my_array=array('first element','seccond element','third elements','fourth element');
foreach($my_array as $elements)
echo "<br />".$elements;


?>


OUTPUT

No comments:

Post a Comment