Thread: Magic Quotes
View Single Post
Old 01-16-2011, 07:27 PM   #4 (permalink)
tony
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

if you still want to use ' to delimit strings you can scape internal ' by escaping them with t backward slash \'

"" display the contents of variables if they are inside of strings like

PHP Code:
<?php
$s 
"string";
echo 
"this is a $s"//echoes to this is a string
echo 'this is a $s'//echoes to this is a $s
?>
tony is offline  
Reply With Quote