Re: Newbie question: qutoes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Double quotes expand variables, that is, if $a = 2, then
echo "The value is $a2";

will print "The value is 2".

Single quotes return strings literally. So, echo 'The value is $a2' would print The value is $a2

Cheers

rory walsh wrote:

Can anyone tell me if there is a difference between double quotes and single quotes? Cheers,
Rory.



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux