View Single Post
Old Feb 1st, 2008, 10:47 AM   #16
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,885
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Re: Function too convoluted?

Ah, I see. So it would have worked the way I said, except when I posted:

function callback_func($key, $value) { return ($value < 2 || $value > 70); }

print_r(array_filter_multi($data, $callback_func, null));

It was actually:

function callback_func($key, $value) { return ($value < 2 || $value > 70); }

print_r(array_filter_multi($data, 'callback_func', null));
Sane is offline   Reply With Quote