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.
Mar 17, 2010