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