How can I set a public variable class for use into more than one functions? The code below returns me the following error:
Parse error: syntax error, unexpected T_NEW in ...
class A {
var $classB = new B();
public function __Construct($param1){
echo $this->classB->export($param1);
}
public function otherParam($param2){
echo $this->classB->export($param2);
}
}