Home »
MCQs »
PHP MCQs
What will be the output of the following PHP code (11)?
44. What will be the output of the following PHP code?
<?php
$str = addslashes('Hello "Includehelp!"');
echo($str);
?>
- Hello Includehelp!
- Hello "Includehelp!"
- Hello ""Includehelp!""
- Hello \"Includehelp!\"
Answer: D) Hello \"Includehelp!\"
Explanation:
The addslashes() function is used to get a string with backslashes in front of predefined characters.