Re: arrays in a class
| From: | Alexander Skwar | Date: | Tue, 23 Apr 2002 20:45:25 +0000 |
| Subject: | Re: arrays in a class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94262@lists.php.net to get a copy of this message | ||
»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