|
Posted by deko on 09/11/06 12:25
> array_filter() doesn't modify its argument, since it is passed by value not
> reference. Therefore $myarray won't have the timestamps removed, and can be
> used again.
Thanks, that helped. Seems like these functions want constants. I was had
trouble with a variable.
Here's what I ended up with:
function getbaz_current($var)
{
return ($var <= MAXDAILY);
}
function getbaz_new($var)
{
return ($var < TIMEAGO30D && $var >= MAXDAILY);
}
$baz_current = array_filter($counter_array, "getbaz_current");
$baz_new = array_filter($counter_array, "getbaz_new");
Navigation:
[Reply to this message]
|