Re: Re: [PHP] What is a label?

From: Date: Thu, 14 Jul 2011 12:49:06 +0000
Subject: Re: Re: [PHP] What is a label?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-314070@lists.php.net to get a copy of this message
On Thu, 2011-07-14 at 13:39 +0100, Stuart Dallas wrote: > On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples <sstaples@mnsi.net> wrote: > > > On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote: > > > A valid variable name starts with a letter or underscore > > > > If I am not mistaken, $_1 is not a valid variable name. > > > You are mistaken. Try it. > > -Stuart > You're right... I have like 100 php scripts open in my Komodo IDE, and I tried it before I posted out of curiosity. I put it in the wrong script, therefore, when it didn't do anything I assumed it didn't work. Thanks Stuart, for pointing that out! I've never used a number as the first character after the $_, and I still probably never will... force of habit I guess :) Steve.

« previous php.general (#314070) next »