php make keys to variables code example Example: php use variable as object key $nid_property = 'my_nid'; $nid = $row->{$nid_property};