Ch2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

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


Set pelajaran terkait

Physics P1: Radio Waves and Microwaves

View Set

IGCSE Biology - Comparison of plant and animal cells

View Set

Plant Physiology/ Chapter 1 : Dr. Sherman : BLY 431-101 : University of South Alabama

View Set

Combo with History of Math Part 1 and 2 and

View Set

Prep U for Brunner and Suddarth's Textbook of Medical Surgical Nursing, 13th Edition Chapter 38: Assessment and Management of Patients With Allergic Disorders

View Set

Rewards Management Final Exam Review

View Set

Weighing an ambululatory resident

View Set