1/56
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
text string
A _____ contains zero or more characters surrounded by double or single quotation marks
single
To include a quoted string within a literal string surrounded by double quotation marks, you surround the quoted string with _____ quotation marks
double
To include a quoted string within a literal string surrounded by single quotation marks, you surround the quoted string with ____ quotation marks
Concatenation operator (.)
_______ combines two strings and assigns the new value to a variable
escape character, backslash (\)
An _____ tells the compiler or interpreter that the character that follows it has a special purpose. In PHP, the _______ is the _______
Simple string syntax
______ uses the value of a variable within a string by including the variable name inside a text string with double quotation marks
complex string syntax
When variables are placed within curly braces inside of a string, it is called ______
strlen(), one
The most commonly used string counting function is the _____ function, which returns the total number of characters in a string. Escape sequences, such as \n, are counted as ____ character
str_word_count()
The______ function returns the number of words in a string
strtoupper()
The ______ function converts all letters in a string to uppercase
strtolower()
The ______ function converts all letters in a string to lowercase
ucfirst()
The _____ function ensures that the first character of a word is uppercase
lcfirst()
The ______ function ensures that the first character of a word is lowercase
ucwords()
The ______ function changes the first character of each word
htmlspecialchars()
The ______ function converts special characters to HTML entities
htmlspecialchars_decode()
The ______ function converts HTML character entities into their equivalent characters
&
"
'
<
>
'&' (ampersand) becomes '____'
'"' (double quote) becomes '____' when ENT_NOQUOTES is disabled.
''' (single quote) becomes '____' only when ENT_QUOTES is enabled.
'<' (less than) becomes '____'
'>' (greater than) becomes '____'
ENT_QUOTES
If _____ is disabled in the PHP configuration, neither single nor double quotes are converted
md5(), Message- Digest Algorithm
The _____ function uses a strong encryption algorithm (called the ________) to create a one-way hash
one-way hash
A ______ is a fixed-length string based on the entered text, from which it is nearly impossible to determine the original text
md5()
The _____ function does not have an equivalent decode function, which makes it a useful function for storing passwords in a database
SHA-256, National Institute of Standards and Technology (NIST)
The second version of SHA, called SHA-2, has many variants. Probably the one most commonly used is ____, which the ________ recommends using instead of MD5 or SHA-1
256, 64
The SHA-256 algorithm returns hash value of ___-bits, or ___ hexadecimal digits. While not quite perfect, current research indicates it is considerably more secure than either MD5 or SHA-1
urlencode()
this function takes a string and encodes it (changes its format) so that it can properly be passed as part of a URL
trim()
ltrim()
rtrim()
The ____ function will strip (remove) leading or trailing spaces in a string
The ____ function removes only the leading spaces
The ____ function removes only the trailing spaces
substr()
The _____ function returns part of a string based on the values of the start and length parameters
positive, start, negative
A _____ number in the ____ parameter indicates how many character to skip at the beginning of the string. A _____ number in the _____ parameter indicates how many characters to count in from the end of the string
positive, length, negative
A ____ value in the in the ____ parameter determines how many characters to return. A ____ value in the ____ parameter skip that many characters at the end of the string and returns the middle portion
entire remainder
If the length is omitted or is greater than the remaining length of the string, the ______ of the string is returned
Parsing
_____ is the act of dividing a string into logical component substrings or tokens
parsing
When programming, _____ refers to the extraction of information from string literals and variables
strpos()
The _____ function performs a case- sensitive search and returns the position of the first occurrence of one string in another string
FALSE
If the search string is not found, the strpos() function returns a Boolean value of _____
strict equal operator(===), strict not equal operator (!==)
To determine whether the strpos() function (and other string functions) actually returns a Boolean FALSE value and not a 0 representing the first character in a string, you must use the ______ or the ________
strchr(), strrchr()
Both functions return a substring from the specified characters to the end of the string
strchr(), strrchr()
_____ function starts searching at the beginning of a string ____ function starts searching at the end of a string
str_replace(), str_ireplace()
The ______ and ______ functions both accept three arguments:
The string you want to search for
A replacement string
The string in which you want to replace characters
strtok(), tokens
Use the ____ function to break a string into smaller strings, called _____
empty string, separators
The strtok() function returns the entire string if:
An _____ is specified as the second argument of the strtok() function.
The string does not contain any of the _____ specified
str_split(), explode()
The _____ and _____ functions split a string into an indexed array
str_split(), length
The _____ function splits each character in a string into an array element. The ____ argument represents the number of characters you want assigned to each array element
explode()
The _____ function splits a string into an indexed array at a specified separator
strtok(), first
The order of the arguments for the explode() function is the reverse of the arguments for the ____ function. If the string does not contain the specified separators, the entire string is assigned to the ____ element of the array
FALSE
If you pass to the explode()function an empty string as the separator argument, the function returns a Boolean value of _____
implode()
The _____ function combines an array’s elements into a single string, separated by specified characters
Comparison operators
______ compare individual characters by their position in the American Standard Code for Information Interchange (ASCII), which are numeric representations of English characters
0 to 255
American Standard Code for Information Interchange (ASCII) values range from _____
97, 122
Lowercase letters are represented by the values ___ (“a”) to ___ (“z”)
65, 90
Uppercase letters are represented by the values ___ (“A”) to ___ (“Z”)
strcasecmp(), strcmp()
The _____ function performs a case- insensitive comparison of strings. The ____ function performs a case- sensitive comparison of strings
strncmp(), strncasecmp()
The _____ and ______ functions are very similar to the strcmp() and strcasecmp() functions, except that you need to pass a third integer argument representing the number of characters you want to compare in the strings
similar_text(), levenshtein()
The _____ and _____ functions are used to determine the similarity between two strings
similar_text()
The _____ function returns the number of characters that two strings have in common
levenshtein()
The _____ function returns the number of characters you need to change for two strings to be the same
soundex(), metaphone()
The _____ and _____ functions determine whether two strings are pronounced similarly
soundex()
The _____ function returns a value representing a name’s phonetic equivalent
metaphone()
The _____ function returns a code representing an English word’s approximate sound