how to include double quotation ""

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
ali91
Forum Newbie
Posts: 1
Joined: Fri Feb 15, 2008 3:32 am

how to include double quotation ""

Post by ali91 »

please i want to include the double qutation in my texe area can some one help me ?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: how to include double quotation ""

Post by Chris Corbyn »

:arrow: Moved to PHP code.

Could you elaborate please?

Code: Select all

<?php
 
echo '"';
//or
echo "\"";
 
 ?>
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Re: how to include double quotation ""

Post by anjanesh »

ali91 wrote:please i want to include the double qutation in my texe area can some one help me ?
text area ?

Code: Select all

<input type="text" name="txt1" value="Arthur C. Clarke's \"The Sentinel\""/>
<input type="text" name="txt1" value='Arthur C. Clarke\'s "The Sentinel"'/>
backslashes arent required in <textarea> blocks.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: how to include double quotation ""

Post by RobertGonzalez »

Are you asking how to escape a string?
Post Reply