To embed a single quote in a singly quoted string, escape it with a backslash : String Escape : String PHP Source Code


PHP Source Code » String » String Escape »

 

To embed a single quote in a singly quoted string, escape it with a backslash



<?

$singly_quoted = 'This quote mark's no big deal either';

echo ($singly_quoted);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo String
» String Escape