I build a (so far) pretty nice templating mechanism for a cms. Now I also added a set of developer tools to the UI for a better UX during development. The only problem I’m left with is that I have to use create_function to add my templates, and therefore have lambda_xyz instead of meaningful template or function names.
Question: Is there a way/work around to give meaningful names to lambda functions in php?
This reference might be able to point you in the right direction:
http://php.net/manual/en/functions.anonymous.php
Anonymous functions require PHP 5 >= 5.3.0
If this isn’t what you are looking for, can you update your question with what you are trying to accomplish in more detail?