I was trying to echo the quotation " in a string, but I realized it wasn't going to work the way I thought it would, does anybody know how to do this?
Thanks
Dark_Omen
5
Posting Pro
Recommended Answers
Jump to PostI was trying to echo the quotation " in a string, but I realized it wasn't going to work the way I thought it would, does anybody know how to do this?
ThanksYou need to escape it:
echo "This is a quote \" and it has …
Jump to Postso you're saying that will print:
This is a quote " and it has been escaped
with the quotation in there, or not?
ThanksThe quote will be there.
Jump to PostYou forgot to escape the quotes:
<?php echo "<a href=\"gallery.php?value=$prevValue\">Previous</a> </br> <a href=\"gallery.php?value=$nextValue\" >Next</a>"; ?>
All 11 Replies
stymiee
111
He's No Good To Me Dead
Team Colleague
Dark_Omen
5
Posting Pro
stymiee
111
He's No Good To Me Dead
Team Colleague
Dark_Omen
5
Posting Pro
stymiee
111
He's No Good To Me Dead
Team Colleague
Dark_Omen
5
Posting Pro
zippee
0
Posting Whiz in Training
stymiee
111
He's No Good To Me Dead
Team Colleague
iamthwee
stymiee
111
He's No Good To Me Dead
Team Colleague
Puckdropper
7
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.