__invoke()
The __invoke() (available as of PHP version 5.3) is called when code tries to use the object as a function. Any arguments defined in this method will be used as the function arguments.
The __invoke method is a way that PHP can accommodate pseudo-first-class functions. The __invoke method can be used to pass a class that can act as a closure or a continuation, or simply as a function that you can pass around.
==================FOLLOW ME ==================
Subscribe My Channel for New Releases!
-------------------- QUESTIONS? -------------------------------
Leave a comment below and I or someone else can help you.
For quick questions
Email me [email protected]
Thanks for all your support!