Q9
What will be the output of the following PHP code? "convertSpace")); ?>
A.
Peter_is_a_great_guy!
B.
Peterisagreatguy!
C.
Peter is a great guy!
AnswerD.
Error
Answer: Option C
Solution
Answer: Option C
Solution:
The code above converts all “_” to white spaces. Call the filter_var() function with the FILTER_CALLBACK filter and an array containing our function.