你不会调试吗?最简单的方法,在return $a;后面接上var_dump($a);这样才能输出return是返回的意思,OK?
$a = eval('$this->' . $property . ';');改成eval("\$a = \$this->\$property;");