Re: Session: I RTFM
| From: | Marco Tabini | Date: | Sun, 15 Dec 2002 14:13:39 +0000 |
| Subject: | Re: Session: I RTFM | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-128324@lists.php.net to get a copy of this message | ||
Single quotes are normal strings. Double quotes are strings in which
substitutions can take place. For example:
<?php
$a = 'test';
echo '$a'; // outputs $a
echo "$a"; // outputs test
?>
Double quotes also expand escape strings (e.g."\n") whereas single
quotes don't.
Cheers,
Marco
--
------------
php|architect - The Magazine for PHP Professionals
The monthly magazine dedicated to the world of PHP programming
Check us out on the web at http://www.phparch.com!