Re: Why $ on variable names?

From: Date: Tue, 12 Nov 2002 18:40:03 +0000
Subject: Re: Why $ on variable names?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-124047@lists.php.net to get a copy of this message
On Wednesday 13 November 2002 02:35, Leif K-Brooks wrote: > I'm just guessing here. For one thing, to seperate variables from > constants. Also, it makes it possible to use variables within quotes. Yup. So you can have: print "I'm a $variable"; instead of the messy javascript way: alert("I'm a " . $variable); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Aleph-null bottles of beer on the wall, Aleph-null bottles of beer, You take one down, and pass it around, Aleph-null bottles of beer on the wall. */

« previous php.general (#124047) next »