Re: Escaping Quotes in a String and Ending With A Quote
| From: | Miguel Cruz | Date: | Wed, 20 Mar 2002 02:28:17 +0000 |
| Subject: | Re: Escaping Quotes in a String and Ending With A Quote | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89259@lists.php.net to get a copy of this message | ||
On Tue, 19 Mar 2002, Dr. Shim wrote:
> Well, this is a fairly simple problem. I'm having problems with escaping a
> string, and then ending the string right after the escape! For example,
>
> echo "Then Johnathan said, \"That's exactly what I said!\"";
>
> I get a parse error on the line where the string is. Very simple problem, I
> just can't seem to solve it though. Maybe I'm going crazy =)
There's nothing wrong with that PHP code. Are you sure you really copied
and pasted it directly from the problem code - or that the parse error
isn't somewhere else?
miguel