[Javascript] String on multiple lines
Dejan Kozina
dejan at kozina.com
Mon Jun 19 20:36:44 CDT 2006
Paul Novitski wrote:
> 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.
True for Javascript, not so for PHP.
Basic example:
$myname = 'Paul';
echo "Hello $myname";
output: Hello Paul
echo 'Hello $myname';
output: Hello $myname
Never mind. PHP is fun.
djn
--
Dejan Kozina
Dolina 346 (TS) - I-34018 Italy
tel./fax: +39 040 228 436 - cell.: +39 348 7355 225
http://www.kozina.com/ - e-mail: dejan at kozina.com
More information about the Javascript
mailing list