To include a literal hyphen (-) in a character before the closing bracket or it will interpreted as a ___.
Back
LITERAL
Front
A(n) ___ string is text that is contained within double or single quotation marks.
Back
TRUE
Front
Placing a backslash in front of an apostrophe tells the PHP scripting engine that the apostrophe is to be treated as a regular keyboard character.
Back
COUNTER
Front
A ____ is a variable that increments or decrements with each iteration of a loop statement
Back
COMPLEX STRING SYNTAX
Front
A structure in which variables are placed within curly braces inside of a string is called a ____.
Back
TRUE
Front
A return statement is a statement that returns a value to the statement that called the function.
Back
OR
Front
The symbol ( || ) is used for the logical ______ operator.
Back
STRLEN()
Front
The most commonly used string counting function is the ____ function, which returns the total number of characters in a string.
Back
FALSE
Front
The source code for PHP can be viewed in the client browser.
Back
REQUIRE
Front
The ____ statement halts the processing of the web page and displays an error if an include file cannot be found.
Back
TRUE
Front
The explode() function splits a string into an indexed array at a specified separator
Back
FUNCTIONS
Front
With many programming languages, global variables are automatically available to all parts of your program, including ____.
Back
FALSE
Front
The escape sequence \\ inserts a comment.
Back
INFINITE
Front
If you do not include code that changes the value used the by the condition expression, your program will be caught in a ____ loop.
Back
FALSE
Front
When the form data is submitted using the get method, the form data is appended to the URL specified in the form's method attribute.
Back
CHARACTER
Front
Any characters included in a ______ class represent alternate characters that are allowed in a pattern match.
Back
TRUE
Front
The strchr() function or strrchr() function return a substring from the specified characters to the end of the string
Back
TRUE
Front
All Web pages containing PHP code must have an extension of .php.
Back
TRUE
Front
The value of the method attribute will be either post or get.
Back
LOCAL
Front
The parameters within the parentheses of a function declaration are what kind of variables?
Back
TRUE
Front
The concatenation assignment operator (.=) combines two text strings.
Back
FALSE
Front
Functions are placed within parentheses that follow a parameter name.
Back
CASE-SENSITIVE
Front
The strcmp() function performs a ____ comparison of two strings.
Back
FLOW
Front
__-control statements allow you to determine the order in which statements execute in a program.
Back
@
Front
The ____ symbol is used to suppress any errors that might be generated by an expression to which it is prepended.
Back
TRUE
Front
Data types that can be assigned only a single value are called primitive types.
Back
CASTING
Front
One way to ensure that a variable is of the correct data type is through type ____.
Back
FALSE
Front
A function must contain a parameter.
Back
TRUE
Front
When you assign a NULL value to a variable, you ensure that the variable does not contain any data.
Back
INCLUDE
Front
The ____ file is typically saved with a prefix of inc_.
Back
FALSE
Front
You will not receive an error if you attempt to use a foreach statement with any variable types other than arrays.
Back
\W
Front
PCRE includes special character types, such as the _____ expression to allow any alphanumeric characters and the underscore character.
Back
ANCHOR
Front
In a regular expression, a(n) ____ specifies that the pattern must appear at that position in the string.
Back
STRTOUPPER()
Front
The ____ function converts all of the letters in a string to capital letters.
Back
TRUE
Front
When using multiple arguments in a function, you must separate the arguments with a comma.
Back
NESTED
Front
When one decision-making statement is contained within another decision-making statement it is referred to as a ____ decision-making structure.
Back
FALSE
Front
Like variables, function names are case sensitive.
Back
PERIOD
Front
The concatenation operator in PHP is a ____.
Back
FALSE
Front
All text strings must begin and end with double quotation marks
Back
ERROR MESSAGE
Front
What will be returned if you use a local variable outside the function in which it is declared?
Back
TRUE
Front
When using the variable name as an index for the $GLOBALS array, you omit the leading dollar sign from the name.
Back
STRTOUPPER()
Front
The ____ function converts all of the letters in a string to capital letters.
Back
FALSE
Front
Both the echo and print statements return a value of 1 if successful and 0 if not successful.
Back
OPTIONAL
Front
The circumflex character (^) used in a character class specifies ____ characters to exclude in a pattern match.
Back
HYPHEN
Front
The ___ metacharacter is used to specify a range of values in a character class.
Back
OR
Front
To allow a string to contain an alternate set of substrings, you separate the strings in a regular expression pattern with the pipe (|) metacharacter, which is similar to the _____ operator.
Back
INITIALIZING
Front
___ a variable is the processing of assigning a first value to a variable.
Back
TRUE
Front
The syntax for the strtok() function is $variable=strtok(string, separators);
Back
CHARACTERS
Front
The similar_text() function returns the number of ____ to strings have in common.
Back
<?PHP ?>
Front
The PHP Group recommends you use the standard ____ script delimiters to write PHP code declaration blocks
Back
Section 2
(18 cards)
BOOLEAN
Front
____________________ operands are limited to the values TRUE or FALSE
Back
STRIPSLASHES()
Front
The ____ function is used to reverse the changes made by magic quotes or the addslashes() function.
Back
$_REQUEST
Front
The ____ autoglobal can be used to access the result from form data sent with both the get and post methods.
Back
TOKENS
Front
The strtok() function is used to break a string into smaller strings, called ____________________.
Back
ACTION
Front
The ____________________ attribute in the opening <form> tag identifies the program on the Web server that will process the form data when the form is submitted.
Back
0-255
Front
ASCII values range from ____________________.
Back
ONE WAY
Front
A()n) ____________________ hash is a fixed length string based on the entered text from which it is almost impossible to determine the original text.
Back
MAGIC QUOTES
Front
The PHP feature that automatically adds a backslash to any single quote, double quote, or NULL character contained in form data that a user submits to a PHP script is ____.
Back
DECLARING
Front
The process of specifying and creating a variable name is called ____________________ the variable.
Back
$GLOBALS
Front
You can use ____ autoglobal array to refer to the global version of a variable from inside a function.
Back
INTERNET MESSAGE FORMAT
Front
The additional_headers argument needs to be formatted to conform to the syntax of headers in the ____ documentation.
Back
DEFINITION
Front
The function ____________________ is the lines of code that make up a function
Back
AUTOGLOBALS
Front
____________________ or superglobals are predefined global arrays that contain client, server, and environment information that you can use in your scripts.
Back
METACHARACTERS
Front
____ are special characters that define the pattern matching rules in a regular expression.
Back
NUMBER
Front
The strncmp() function and the strncasecmp() function contain a third argument specifying the ____________________ of characters to compare in the string.
Back
FIRST
Front
The ucfirst() function and the lcfirst() function only change the ____________________ character of a string.
Back
FUNCTIONS
Front
Groups of statements you can execute as a single unit are called ____________________.
Back
WHILE
Front
A ____________________ statement keeps repeating until its conditional expression evaluates to FALSE.