[php]
<?php class myClass { public $hello = 'hello'; function printHello(){ echo $this->$hello; } } $obj = new myClass(); echo $obj->printHello(); ?>[/php]
I am receiving this error
Fatal error: Cannot access empty property in /home/techbiz/public_html/187/class.php on line 8
Anyone know what I’m doing wrong?