Skip to content

Instantly share code, notes, and snippets.

@user24
Created March 29, 2012 22:13
<?php
class Foo {
public function __call($func, $args) {
if(method_exists($this,$func)) {
return call_user_func_array(array($this,$func),$args);
}
}
}
class SomeChild extends Foo {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment