I know eval should be avoided in JavaScript for speed and security reasons. But in the case of PHP, rarely is security ever mentioned. More often, it\'s your pr
eval
If you want to use anonymous functions prior to PHP 5.3, you need to use create_function, which wraps an eval() call.