Re: Variable variables and references
| From: | Robert Cummings | Date: | Wed, 14 Mar 2007 12:24:57 +0000 |
| Subject: | Re: Variable variables and references | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-250550@lists.php.net to get a copy of this message | ||
On Wed, 2007-03-14 at 12:39 +0100, Jochem Maas wrote:
> Richard Lynch wrote:
> > On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote:
> >> Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I
> >> think
> >> it's a great book, I am confused about variable variables and
> >> references -
> >> not the mechanics, just where you would use them.
> >>
> >> The subject of variable variables is explained but no examples are
> >> given as
> >> to why and where you would utilise them.
> >
> > 99% of the time, using variable variables means you screwed up and
> > should have used an array. :-)
>
> you could change that adage to this and it would still be true ;-) :
>
> "75% of the time, using <fill in a blank> means you screwed up and
> should have used an array. :-)"
>
> - Lynchism #3
I'm certain it conforms to the golden ratio :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'