[Javascript] String on multiple lines
Paul Novitski
paul at juniperwebcraft.com
Mon Jun 19 19:19:50 CDT 2006
At 04:42 PM 6/19/2006, Scott Reynen wrote:
>I think you had it right the first time. If I'm understanding the
>original question, he doesn't actually have the character "\"
>followed by "n" in $variable. He has a line break, not a backslash,
>and a line break in PHP is "\n". The character "\" followed by
>"n" (the replacement) is "\\n" or more simply '\n' (single quoted
>strings aren't parsed).
Thanks, Scott, you're right. (I shouldn't post when I'm frantically
working on other things!)
But, "single quoted strings aren't parsed"? I'm not familiar with
such a rule in either PHP or JavaScript. I thought single & double
quotes were interchangeable in both languages. Please elucidate.
Cheers,
Paul
More information about the Javascript
mailing list