addslash php code example
Example 1: php addcslashes
$str = addslashes('What does "yolo" mean?'); // for either ' or "
echo($str);
$str = addcslashes('What does "yolo" mean?','?'); // specify charaters to preceed by \
echo($str);
Example 2: addslashes php
$str = addslashes('What does "yolo" mean?');
echo($str);