Page 1 of 1

Is it possible to echo a double quote symbol?

Posted: Wed Oct 28, 2009 10:21 pm
by edawson003
If so, how?

Re: Is it possible to echo a double quote symbol?

Posted: Wed Oct 28, 2009 10:22 pm
by John Cartwright

Code: Select all

echo '"'; //single quotes

or

Code: Select all

echo "\""; //escaping

Re: Is it possible to echo a double quote symbol?

Posted: Wed Oct 28, 2009 10:25 pm
by edawson003
thx!

Re: Is it possible to echo a double quote symbol?

Posted: Thu Oct 29, 2009 8:54 am
by edawson003
how would I echo a comma? I tried this. Didn't work.

<? echo "\,"; ?>

Re: Is it possible to echo a double quote symbol?

Posted: Thu Oct 29, 2009 3:44 pm
by ashton321
just echo ","; or echo ',';

, doesnt need to be escaped