PHP Basics In Pictures
Employ lists of variables
Create lists of number variables
  1. Create a new script with this code:


    # This script demonstrates how to
    # create a numeric array.

    $AcmeInventory = (178,286,387);

    print "$AcmeInventory[0]<br>\n";
    print "$AcmeInventory[1]<br>\n";
    print "$AcmeInventory[2]<br>\n";

    print "<p>We just created a list of numbers using an array variable!";

  2. Save the script as numberlist.php in the PHPSCRIPTS folder.