The magic function __call() in php are used in classes. Are there any similar magic function but for functions instead? Like __autoload() is for functions.
For example something like this
function __call($name, $arguments) {
echo "Function $name says {$arguments[0]} ";
}
random_func("hello");
See Question&Answers more detail:os