while array php code example
Example: php while loop array
$foodArray = ["Eggs", "Bacon", "HashBrowns", "Beans", "Bread"];
foreach ($foodArray as $food) {
echo $food ."<br />";
}
$foodArray = ["Eggs", "Bacon", "HashBrowns", "Beans", "Bread"];
foreach ($foodArray as $food) {
echo $food ."<br />";
}