> > Wouldn't it be smarter to only fill this array with items matching
the
> > date you want in the first place??
> How?

I don't know. You do create this array at some point, right? How do you
do it? How do you "create" the date field in the "ingress Object" ?
Whenever/However you're creating this list, look at the date field in
the object and only add it to your array if it matches the dates your
looking for.

> > Anyhow...now you'll have to loop through each "ingress Object" and
see
> > if substr($obj->publisert,-2) matches the month you want.
> Dont know if I understood that one :(

You have a variable called "publisert" in the "ingress Object" inside of
your array, right? The format is YYYY DD/MM, it appears. Odd as that may
be, if you use substr() to just pull the last two characters, the month,
and then match that to the month your looking for, you'll see if this
"object" is one that you want to keep or not. 

---John W. Holmes...

Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to