Introduction to php magic method __invoke
Introduction to the PHP magic method __invoke: 1. Directly call the object name. When the method is used, the __invoke() method is called. 2. The object itself cannot be used directly as a function. If you remove the __invoke() method and still use the ob
2022-05-27