Be aware that these anonymous functions (closures) will require PHP 5.3+ while the current requirements are for PHP 5.2.1+. Is there another option that achieves the same results but works in 5.2.1?