Is there an alternative to anonymous functions in versions of PHP previous to 5.3.0?
Yes, create_function()