<?php $location = new stdClass; //$location->city = "Chicago"; $variableName = 'location->city'; ${$variableName} = 'Chicago'; var_dump(${$variableName});
You have javascript disabled. You will not be able to edit any code.