Created
July 14, 2016 10:59
-
-
Save anonymous/91404241e3ccb86f21d05fb7a9ed3f75 to your computer and use it in GitHub Desktop.
This file contains 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 fmOutput | |
{ | |
public function sex($value = '') | |
{ | |
return 66; | |
} | |
public function op($funcname='', $value = '') | |
{ | |
return $this->$funcname; | |
} | |
public function __call($funcName,$args) | |
{ | |
return "Oops,{{$funcName}}is unexist"; | |
} | |
} | |
$FM = new fmOutput(); | |
echo $FM->op('sex', '男'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment