Re: Absolute #$#$ silliness

From: Date: Fri, 26 Oct 2001 23:24:26 +0000
Subject: Re: Absolute #$#$ silliness
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72530@lists.php.net to get a copy of this message
In article <3BD9E86E.6A91455A@courrier.usherb.ca>, jtjohnston@courrier.usherb.ca (Jtjohnston) wrote: > I was getting > > "parse error, expecting T_VARIABLE' or > '$'' in ..." > > until I exchanged the naming of these: > > $1a = 0; $1b = 0; $1c = 0; $1d = 0; $1e = 0; $1f = 0; > > (It won't accept $1a as a variable.) ... for these: > > $Onea = 0; $Oneb = 0; $Onec = 0; $Oned = 0; $Onee = 0; $Onef = 0; > > (Which is Absolute silliness, but I didn't create PHP !!) RTM <http://www.php.net/manual/en/language.variables.php>: "Variable names follow the same rules as other labels in PHP. A valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores." -- CC

« previous php.general (#72530) next »