Examveda
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. What does ”yolo” mean?

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 :
    3 years ago

    wrong anwser!

Related Questions on Functions