Answers for "how to create a array using while loop in 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 "how to create a array using while loop in php"

Browse Popular Code Answers by Language