Re: Strings with embedded quotes and double quotes
| From: | Jason Wong | Date: | Wed, 03 Jul 2002 02:04:43 +0000 |
| Subject: | Re: Strings with embedded quotes and double quotes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-105104@lists.php.net to get a copy of this message | ||
On Wednesday 03 July 2002 09:54, C. Cormier - Ormetal Inc. wrote:
> I need to echo a string that contains both quotes and double
> quotes.
>
> I remember doing this once using a special construct where the
> string started on a new line with a triple slash if I remember well. Or
> it was a triple something...
>
> I can't find the topic in the online PHP doc...
>
> Anybody remember this construct?
echo "'\""; # displays '"
echo '\'"'; # displays '"
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Unix soit qui mal y pense
[Unix to him who evil thinks?]
*/