class ABC{
public function __construct(){}
// There have a parameter
public function check($data){
// There have a variable
$available = null;
if(true){
$available = true;
}else{
$available = false;
}
}
}
$obj= new ABC();
// I want to access this $available
$obj->available;
如何从类方法中访问$available
值?
这个方法中是否有动态参数(这是问题)?