PHP Basics In Pictures
Employ looping
Print a list of elements
  1. Create a new script with this code:

    <?php

    $AcmeCars = array("Ford","Dodge","Chevy");

    print "<p>The text array contains:</p>";

    foreach ($AcmeCars as $thisCar){
    print "$thisCar<br>\n";
    }

    ?>
  2. Save the script as printlist.php in the PHPSCRIPTS folder.