dynamically put key and value in php object code example Example: PHP dynamic property name $obj->{$field}