Global “method_missing” in PHP? [closed]

typeman

New Member
\[quote\] Possible Duplicate:
Magic functions __call() for functions? \[/quote\]I can implement __call() to provide method_missing behavior in PHP classes. Is there some way to provide the same functionality in the global scope?I want something like this:\[code\]function __call( $name, $arguments ) { echo( sprintf( '%s called', $name ) );}echo( 'before' );call_undefined_function( $a, $b );echo( 'after' );\[/code\]Outputs:\[code\]beforecall_undefined_function calledafter\[/code\]
 
Back
Top