note 26588 deleted from language.constants by danbrown

From: Date: Tue, 26 Jul 2011 20:06:30 +0000
Subject: note 26588 deleted from language.constants by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181916@lists.php.net to get a copy of this message
Note Submitter: gv (at) damnsw (dot) net ---- fmmarzoa: In PHP 4.2.2/CLI, I had no problem setting define()'s to the contents of variables: <? $foo = "PHP"; define( "bar", "$foo is a good thing." ); print bar; ?> Will print "PHP is a good thing.". A notable difference, however, between my example and yours is your use of single-quotes. Strings in single quotes (') will not be expanded: print '$foo'; Will print '$foo', not the contents of $foo. http://www.php.net/manual/en/language.types.string.php --gv

« previous php.notes (#181916) next »