[thelist] Filtering an array in PHP for multiple criteria

Aaron Vegh aaronvegh at gmail.com
Wed Jun 11 12:59:26 CDT 2008

Hi Matt,

> Have you tried just looping through that array and doing a test on
> category and toe values?

Thanks for writing. Unfortunately that technique -- while brutishly
simple :-) -- doesn't account for one thing I didn't mention: the
search criteria are optional. So there may not be a value for toe
type, for example, in which case the if statement would always fail.
Neat thought, though; I hadn't considered it myself!


More information about the thelist mailing list