I'm looking at this example array_filter comment and he passes an argument to array_filter as
array_filter($subject, array(new array_ereg("image[0-9]{3}\.png"), 'ereg')
How is it that the callback accepts an array with multiple arguments one of them being the actual callback function
eregfunctions are deprecated, and you should avoid using them.