A structure in which variables are placed within curly braces inside of a string is called a ____.
simple string synta
function
complex string syntax
method
____ are special characters that define the pattern matching rules in a regular expression.
Specialchars
Patterncharacters
Expressionchars
Metacharacters
The ____ function splits a string into pieces based on a separator string.
repair()
implode()
explode()
strtok()
Which of the following is an alias for the chop() PHP function?
trim()
ltrim()
rtrim()
\0
Question 1: complex string syntax Question 2: metacharacters Question 3: strtok() Question 4: rtrim()
A structure in which variables are placed within curly braces inside of a string is called...
11. The str_word_count() function returns the number of digits in a string. T/F [?] 12. The term parsing refers to the act of dividing a string into logical component substrings or tokens. T/F [?] 13. The strpos() function performs a case-sensitive search for specified characters in a string and returns the position of the first occurrence of a substring within a string. T/F [?] 14. The strchr() function or strrchr() function return a substring from the specified characters to the...
# After the if statement that follows is executed, what will the value of $discount_amount be? $discount_amount; $order_total = 200; if ($order_total > 200) { $discount_amount = $order_total * .3; } else if ($order_total > 100) { $discount_amount = $order_total * .2; } else { $discount_amount = $order_total * .1; } 2 20 40 60 # To open a file in PHP, you use the _________ function. fopen() ...