Answers for "using a while loop to loop through an array php"

PHP
2

php while loop array

$foodArray = ["Eggs", "Bacon", "HashBrowns", "Beans", "Bread"];

        foreach ($foodArray as $food)  {
            echo $food ."<br />";
        }
Posted by: Guest on March-07-2021

Code answers related to "using a while loop to loop through an array php"

Browse Popular Code Answers by Language