Hyvor Developer
  Home   Download   Copy
Code
<?php
$fruits = ['Apple', 'Banana', 'Orange', 'Mango'];

// foreach loop
foreach ($fruits as $fruit) {
	echo $fruit . '<br>';
}
Result