Quick PHP Help

Quick PHP Help

Post by wild_legs76 on Tue Mar 17, 2009 2:37 am
([msg=20079]see Quick PHP Help[/msg])

I forgot what I needed to put before (or after a character) so that PHP will disregard as being part of the code but rather as text...as in:

<?php
echo "Hello World"""";
?>

So I would want the output to be: Hello World"""

What do I need to put before( or after) the three quotation marks so that php will treat it as part of the string rather than an end to the string.
wild_legs76
New User
New User
 
Posts: 5
Joined: Tue Mar 17, 2009 1:34 am
Blog: View Blog (0)


Re: Quick PHP Help

Post by mischief on Tue Mar 17, 2009 3:43 am
([msg=20082]see Re: Quick PHP Help[/msg])

put a \ before the character, i.e echo "Quote \"test\"";
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha
User avatar
mischief
Poster
Poster
 
Posts: 355
Joined: Wed Jan 07, 2009 4:16 pm
Blog: View Blog (0)


Re: Quick PHP Help

Post by wild_legs76 on Tue Mar 17, 2009 12:41 pm
([msg=20096]see Re: Quick PHP Help[/msg])

thanks a lot
wild_legs76
New User
New User
 
Posts: 5
Joined: Tue Mar 17, 2009 1:34 am
Blog: View Blog (0)



Return to Web Design

Who is online

Users browsing this forum: No registered users and 0 guests