What Are the Special Characters You Need to Escape in Single-Quoted Strings?
By Manju S Reddy
Special Characters You need to escape in single-quoted string.....
Teacher SiliconIndia replied to Manju S Reddy Wednesday, March 17, 2010
Hi Manjunath,
There are two special characters you need to escape in a single-quote string: the single quote (') and the back slash (). Here is a PHP script example of single-quoted strings.
Example:
<?php
echo "Hello Anand !";
echo "It's Sunday !";
echo "\ represents an operator.";
?>
OUT PUT:
Hello Anand!It's Friday! represents an operator.