What is an anonymous function in PHP? Could you give me a simple example, please?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP.net has a manual page about Anonymous functions and on Wikipedia you can read about Anonymous functions in general.
Example from PHP.net
PHP 4.0.1 to 5.3
PHP 5.3
Examples taken from Wikipedia and php.net