<?php
class test
{
function __construct()
{
$methods = get_class_methods( get_class($this) )
foreach($methods as $method)
// question: how to get $get_me in function a() ?
echo $this->method():$get_me;
}
function a()
{
$get_me = "good, take me home.";
}
?>
如何从外部函数 a() 访问 $get ?