Page 1 of 1

newbie...need quick syntax help

Posted: Tue Apr 22, 2008 10:15 pm
by pulse88
Hi all,
I'm fairly new to PHP scripting and to this forum (but I've been looking for places to learn more including this place).

my simple question: (I forget the escape character)
In a PHP statement how do you put in the '//' before letting PHP accept it as another code for comment.

This is the line: echo ("$result_set[$element] <a href = 'http://www.somewebsite.com'> $value </a> <br/>");
Obviously, I can't use the // after http: as PHP will consider that as a comment. I know this is quick but I just can't find it. HELP HELP!

Thanks,
-me

:banghead:

Re: newbie...need quick syntax help

Posted: Wed Apr 23, 2008 12:54 am
by Christopher
PHP will not consider // as a comment if it is between quotes. So "//" will be a string, not a comment.