Hi,
I was wondering if there are any plans to introduce the ability of array functions to work with
"array objects".
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.
A
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