RE: [PHP] arrays in a class
| From: | NCI/IMS) | Date: | Tue, 23 Apr 2002 20:48:30 +0000 |
| Subject: | RE: [PHP] arrays in a class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-94265@lists.php.net to get a copy of this message | ||
I'm just glad it's working! It's hard to debug when you can't see what's
in
the arrays :-) The {} way is definitely not as nice looking - at least this
way when some other poor soul works with my code they have a chance at
understanding what was going on!
Thanks again!
-Natalie
-----Original Message-----
From: Alexander Skwar [mailto:lists.ASkwar@DigitalProjects.com]
Sent: Tuesday, April 23, 2002 4:45 PM
To: Leotta, Natalie (NCI/IMS)
Cc: php-general@lists.php.net
Subject: Re: [PHP] arrays in a class
»Leotta, Natalie (NCI/IMS)« sagte am 2002-04-23 um 16:37:37 -0400 :
> Wow. Now I'm feeling dumb... It does work with my non-array vars
> though -
Yes, it doesn't suprise me that it works with non arrays. The parser
doesn't seem to be clever enough to catch that you want to pass [0] as the
array index to the class var apcs of $this. Instead of doing it the way I
just suggested, you could have also done "{$this->apcs[0]}", I think. I
seem to remember that this also should be possible - but IMO that's even a
lot more broken than my way and I've never used it.
> Thanks!!
np
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber:
askwar@a-message.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 14 hours 58 minutes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php