1. Save the script as numbers.php in the PHPSCRIPTS folder.

    Here’s what each line of the script does:
  • <?php

    This is the starting PHP tag. Your PHP code starts after this tag.

  • $cars_on_lot = 100;

    $cars_on_lot is the variable. Variables start with a $.

    The number 100 is assigned to the variable. The number is easy to change—that’s why it’s called a variable.

  • print "<p>Welcome to <b>ACME AUTO!</b></p>";

    print "<p>Which one of our $cars_on_lot cars is right for you?</p>";

    These lines should also look familiar. They’re HTML code like we’ve used before, but with a difference: $cars_on_lot.

    This variable tells the Web browser to get the number specified (100) and insert it here.

    You’ll see how it works in the following steps.