Created
March 27, 2011 16:47
-
-
Save orther/889361 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Test { | |
function call ($method_name) { | |
// echo $method_name; | |
$this->{"call_".$method_name}(); | |
} | |
private function call_cock () { | |
echo "DONG FOR DAZE!!!\n"; | |
} | |
} | |
$t = new Test(); | |
$t->call('cock'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment