classSomething{publicfunction__invoke($params){var_dump('Hi there 👋. I invoked myself 😁');}}$something=newSomething(['dev.to','is','really','cool']);var_dump('Did the invoke work? 😕');
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thank you for your comment. I tried your example. But somehow the invoke method is never called 🤔. Could you help me with that?
Here is a link to a "Online PHP Compiler": repl.it/repls/DisastrousViciousFeed