Re: Array objects & array functions
| From: | Stanislav Malyshev | Date: | Mon, 07 Jan 2008 19:14:25 +0000 |
| Subject: | Re: Array objects & array functions | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-34597@lists.php.net to get a copy of this message | ||
More specifically I was thinking of starting with adding an SPL interface called ArraySearchable, and modifying php_search_array in ext/standard/array.c to accept an object that implements that interface, in which case the appropriate interface method is called.What this interface would do? I think standard Iterator's next(), current() and valid() should be enough. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com