<?phpclass fooBar { public $hola = "hola"; function __construct() { echo $this->hola; //tengo acceso a hola }}$foo = new fooBar();?>