Much like anonymous functions, in PHP 7, you now have the ability to create anonymous classes. They're definitely not for everything, but you might find some good use-cases from time to time.
Published on Nov 11th, 2015.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.