Re: iterating objects with interfaces
| From: | Andrei Zmievski | Date: | Mon, 10 Mar 2003 14:08:05 +0000 |
| Subject: | Re: iterating objects with interfaces | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94975@lists.php.net to get a copy of this message | ||
Very cool. :)
On Sun, 09 Mar 2003, Marcus Börger wrote:
> Hi,
>
> i've just done the first step for a new extension which shall make use
> of interfaces newly implemented in ZE2.
>
> currently the extension implements the namespace "spl" and the
> interfaces "spl_foreach", "spl_forward" and "spl_key". A class
> that
> implements these can be used in a foreach() call. This work without
> even modifying the engine, i simply hook on the necessary calls.
>
> References:
>
> The documentation of the interfaces and their usage:
> http://marcus-boerger.de/php/ext/spl/spl.phps
>
> The extension code:
> http://marcus-boerger.de/php/ext/spl/spl-20030309.tar.bz2
>
> And a testfile to demonstrate it works (beside shutdown):
> http://marcus-boerger.de/php/ext/spl/tests/foreach.phpt
>
> Of corse i am curious about other meanings :-)
> Otherwise i wouldn`t have posted here, would i?
>
> regards
> marcus
>
>
>
> --
> ----------------------------------------------------------------------
> Marcus Börger - Looking for all sorts of freelance work - just ask...
>
> Did i help you? Consider a gift:
> http://www.amazon.de/exec/obidos/wishlist/ho722v0rg1u0
> ----------------------------------------------------------------------
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-Andrei http://www.gravitonic.com/
* I don't mind going nowhere as long as it's an interesting path. *