-
What will be the output of the following PHP code?
<?php
$string = addslashes('how are "you" doing?');
echo $string;
?>
-
- how are "you" doing?
- how are you doing?
- how are \"you\" doing?
- Error
- None of these
Correct Option: C
The addslashes() function returns a string with backslashes in front of predefined characters.