MCQs
Total Questions : 14
| Page 1 of 2 pages
Answer: Option B. -> 8
The functions are preg_filter(), preg_grep(), preg_match(), preg_match_all(), preg_quote(), preg_replace(), preg_replace_callback(), and preg_split().
Answer: Option D. -> All of the mentioned
All of the functions mentioned above can be used to compare strings in some or the other way.
Answer: Option D. -> o'malley wins the heavyweight championship!
The ucwords() function capitalizes the first letter of each word in a string. Its prototype follows:string ucwords(string str)
Answer: Option A. -> strtoupper()
Its prototype follows stringstrtoupper(string str).
Answer: Option D. -> Salad is good
The str_pad() function pads a string with a specified number of characters.
Answer: Option B. -> implode()
implode()
Answer: Option D. -> strrpos()
strrpos()
Answer: Option C. -> (i) and (iv)
(i) and (iv)
Answer: Option D. -> example.com
The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.
Answer: Option C. -> P?
P?