How can I execute an anonymous function? Pradeep Maurya 7 years ago call_user_func(function() { echo ‘anonymous function called.’; });