Is there any alternative for the __call() magic method in procedural PHP? I want to provide a fallback for undefined functions.
My usage case specifically is that I'm using a famous CMS built in procedural, and I want to use regular functions on the theme files and call those functions from Classes from behind the scenes, so I need some kind of fallback for undefined functions.