[PHP] Strings with embedded quotes and double quotes

2002-07-02 Thread C. Cormier - Ormetal Inc.

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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Strings with embedded quotes and double quotes

2002-07-02 Thread Jason Wong

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?]
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php