|
Posted by OmegaJunior on 02/27/07 22:40
On Tue, 27 Feb 2007 23:23:14 +0100, laredotornado@zipmail.com
<laredotornado@zipmail.com> wrote:
> Hi,
>
> I have an array filled with a particular type of object, which
> contains an attribute "m_level", of integer type. What I want is to
> get a subset of the array whose "m_level" attribute is equal to zero.
> Is there a short way I can do this other than iterating through a
> foreach / for loop?
>
> I'm using PHP 4.4.4.
>
> Thanks, - Dave
>
Did you try the array_filter() function?
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
[Back to original message]
|