Is it possible to echo a double quote symbol?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

Is it possible to echo a double quote symbol?

Post by edawson003 »

If so, how?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post by John Cartwright »

Code: Select all

echo '"'; //single quotes

or

Code: Select all

echo "\""; //escaping
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

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

Post by edawson003 »

thx!
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

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

Post by edawson003 »

how would I echo a comma? I tried this. Didn't work.

<? echo "\,"; ?>
ashton321
Forum Newbie
Posts: 3
Joined: Mon Oct 26, 2009 7:23 pm

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

Post by ashton321 »

just echo ","; or echo ',';

, doesnt need to be escaped
Post Reply