Very elegant but inneficient... Prior to PHP 5.3 these are no true lambdas... I would suggest looking at the approach used by `ZendExt_Tool_Generator_Abstract`, which may be simplified since we don't need to support pascal casing at all.