Answered Sep 01, 2022
Answer: Option 4
Coffee was not replaced because the preg_replace function is case sensitive. Therefore it treats coffee and Coffee differently.
Answer: Option 3 The code uses preg_match to check for a keyword and replies based on whether it is true (1) or false (0).
Answer: Option 1 This one works because b is declared independent of TV() also.
Answer: Option 2 Function b is declared twice.
Answer: Option 3 If a break statement isn’t present, all subsequent case blocks will execute until a break statement is located.
Answer: Option 3 In PHP, all variables are case-sensitive.
Answer: Option 1 The next() function returns the array value residing at the position immediately following that of the current array pointer.
Answer: Option 1 The array_push() function inserts one or more elements to the end of an array.
Answer: Option 3 The addslashes() function returns a string with backslashes in front of predefined characters.
Answer: Option 2 The explode() function breaks a string into an array.
Answer: Option 2 The stripos() function finds the position of the first occurrence of a string inside another string.
Install the Bissoy app to consult with a doctor.
Log in to ask questions, provide answers, or leave comments.