Examveda

What will be the output of the following PHP code?
<?php 
    $str = addslashes('What does "yolo" mean?');
    echo($str); 
?>

A. What does /”yolo/” mean?

B. What does ”Yolo” mean?

C. What does ”yolo” mean?

D. None of the above

Answer: Option C

Solution (By Examveda Team)

The addslashes() function returns a string with backslashes in front of predefined characters.

This Question Belongs to PHP >> Functions

Join The Discussion

Comments (1)

  1. CS VN
    CS VN:
    5 years ago

    wrong anwser!

Related Questions on Functions