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