Re: Newbie question: qutoes?
| From: | Matt Harnaga | Date: | Sun, 06 Mar 2005 18:43:11 +0000 |
| Subject: | Re: Newbie question: qutoes? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-210104@lists.php.net to get a copy of this message | ||
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.