Filtering arrays based on an object attribute
- From: "laredotornado@xxxxxxxxxxx" <laredotornado@xxxxxxxxxxx>
- Date: 27 Feb 2007 14:23:14 -0800
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
.
- Follow-Ups:
- Re: Filtering arrays based on an object attribute
- From: Sjoerd
- Re: Filtering arrays based on an object attribute
- From: OmegaJunior
- Re: Filtering arrays based on an object attribute
- Prev by Date: Re: array $_GET
- Next by Date: Re: How to remove row from ezSQL object?
- Previous by thread: mhash functions for my windows apache development server
- Next by thread: Re: Filtering arrays based on an object attribute
- Index(es):
Relevant Pages
|