Ch2
The variables in pHP are easy to spot because they always start with _________.
$
To get the data that is submitted with an HTTP GET request, you use PHP to get the data from the built-in _________ array.
$_GET
What value will the variable $net_price contain after the code that follows is executed? __________________________ $list_price = 100.00; $discount_percent = 20; $discount_amount = $list_price $discount_percent .01; $net_price = $list_price - $discount_amount;
80
To embed PHP within a file, you start a tag with ___________, you code the embedded PHP statements, and you end the tag with ?>.
<?php
What will the variable $name contain after the code that follows is executed? __________________________ $first_name = 'Bob'; $last_name = 'Roberts'; $name = "Name: $first_name";
Bob
The _________ data type is used to store a true or false value.
Boolean
In a conditional expression that includes logical operators, the AND operator has a lower order of precedence than the ___________ operator.
OR
In a simple assignment statement, you code the variable name followed by the __________ operator.
assignment
The condition for a while loop is tested __________ the statements in the loop are executed.
before
The ________ in a block of PHP code are ignored.
comments
To use pHP to send data to the browser, you use the __________ statement.
echo
In an if statement, the statements in the else clause are executed if none of the conditions in the if or __________ clauses are true.
else if
In an arithmetic expression, division is done before multiplication, but you can override that by using ___________.
parenthesis
When you call a function like the number_format function that returns a value, you usually __________ the result of the function to a variable.
test
A variable name in PHP can only contain letters, numbers and _______.
underscore