Skip to content

Instantly share code, notes, and snippets.

Created July 14, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/91404241e3ccb86f21d05fb7a9ed3f75 to your computer and use it in GitHub Desktop.
Save anonymous/91404241e3ccb86f21d05fb7a9ed3f75 to your computer and use it in GitHub Desktop.
<?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