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