Below is the text from PHP Documentation :
Support for anonymous classes was added in PHP 7. Anonymous classes are useful when simple, one-off objects need to be created.
I didn't understand the meaning of the term 'one-off object' or rather 'simple one-off object' from the above text.
Someone please explain me the meaning of this term in a simple, lucid and easy to understand language.
Also, please explain me how the anonymous classes are useful when simple, one-off objects need to be created?
Do these 'one-off objects' or rather 'simple one-off objects' are used in live websites and applications?