Re: Easier way to get the name of a variable?
| From: | Robert Cummings | Date: | Wed, 16 Aug 2006 01:34:04 +0000 |
| Subject: | Re: Easier way to get the name of a variable? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240754@lists.php.net to get a copy of this message | ||
On Tue, 2006-08-15 at 19:01 -0500, Larry Garfield wrote:
> On Tuesday 15 August 2006 16:50, Richard Lynch wrote:
>
> > If the names are not predictable, the array solution is probably best,
> > as there is movement in the PHP Internals list that may (or may not)
> > make it impossible to dynamically add a property to an object. I've
> > lost track of where that thread ended, so apologies if this is a
> > non-issue.
>
> Gah! Please tell me you're joking. That would kill one of PHP's best
> features, the fact that you can have dynamic data structures.
>
> PHP != Java!!!
I read the list earlier (thanks Richard) and the final consensus was to
enforce the restriction only if the class is defined as strict.
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. |
`------------------------------------------------------------'