我有这样的课:
class Example{
private $a;
private $b;
function Example($user){
$this->a = $user;
$this->b = getsting(); //here is my problem
}
function getstring(){
return "string".$this->a; //here I have a class variable
}
}
如何返回值$b
?