In PHP one can use variable variables...
For example...
class obj { } $fieldName = \"Surname\"; $object = new obj(); $object->Name = \"John\"; $objec
but I will not be able to access it with $object->...... because it would not parse correctly
but look:
class A {} $varName = '!asd asd'; $a = new A(); $a->$varName = '1'; echo "{$a->{'!asd asd'}}"; // 1
Certainly not recommended but it can be done.