note 11209 added to echo
| From: | sam at aigraphics dot com | Date: | Fri, 09 Feb 2001 22:51:15 +0000 |
| Subject: | note 11209 added to echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-10869@lists.php.net to get a copy of this message | ||
It appears that using double quotes (") around variables will show the value of the variable
whereas single quotes (') will show the variable name. Here's an example:
$test = "blah";
echo '$test' . " = " . "$test";
That example will output "$test = blah".
http://www.php.net/manual/en/function.echo.php