Re: Why $ on variable names?

From: Date: Tue, 12 Nov 2002 18:40:09 +0000
Subject: Re: Why $ on variable names?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124048@lists.php.net to get a copy of this message
So you can put variables inside quoted strings. Without $ how would this work? price = 9.95; echo "The price is price"; It also means you can have variables that are the same name as function names. -Rasmus On Tue, 12 Nov 2002, brucedickey wrote: > I've searched, but haven't found the answer -- from a language design point > of view, why are there $ on the front of PHP variable names? > > Thanks, > > Bruce > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#124048) next »