Re: No collection objects in PEAR?
| From: | Justin Patrin | Date: | Fri, 14 May 2004 18:32:19 +0000 |
| Subject: | Re: No collection objects in PEAR? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12495@lists.php.net to get a copy of this message | ||
Mike Zornek wrote:
I admit I'm no PEAR expert, so hopefully I'm just not seeing them--- Are there any collection objects in PEAR (or elsewhere, PHP5?) for things like arrays, dictionaries, sets, etc.? I'm trying to doing OOP obviously and whenever I have to put an array into a object as a property is make me do a lot more procedural stuff in my code than I'd like. ~ Mike ----- Mike Zornek Web Designer, Media Developer, Programmer and Geek Personal site: <http://MikeZornek.com> New Project: <http://WebDevWiki.com>Whateverone else is trying to say is: For an Array, use: $arr = array(); $arr[0] = 5; Set / Hash: $arr['key'] = 'value'; etc... -- paperCrane <Justin Patrin>