<?php class A { public $b = 'foo'; } $a = new A(); $c = 'b'; var_dump($a->$c);
You have javascript disabled. You will not be able to edit any code.