Re: Why $ on variable names?
| From: | Leif K-Brooks | Date: | Tue, 12 Nov 2002 18:35:37 +0000 |
| Subject: | Re: Why $ on variable names? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-124045@lists.php.net to get a copy of this message | ||
I'm just guessing here. For one thing, to seperate variables from constants. Also, it makes it possible to use variables within quotes.
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-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.