note 11209 deleted from echo by ronabop

From: Date: Wed, 21 Mar 2001 05:43:48 +0000
Subject: note 11209 deleted from echo by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12604@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".

« previous php.notes (#12604) next »