php quote code example
Example 1: addslashes php
$str = addslashes('What does "yolo" mean?');
echo($str);
Example 2: php quotations within quotations
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>
$str = addslashes('What does "yolo" mean?');
echo($str);
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>