how to use quotes within quotes php excape characters code example
Example: php quotations within quotations
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>
<?php
echo '<span onclick="$(this).addClass(\'selected\');"> </span>';
?>