PHP dynamic property name
snippet in php

PHP dynamic property name

user2916

$obj->{$field}