This is how I get the date time of a city,
$date = new DateTime('now', new DateTimeZone('Asia/Bangkok'));
instead that need to get it from variables, I tried the below code but it not successful.
$type = 'Asia';
$type1 = 'Bangkok';
$date = new DateTime('now', new DateTimeZone('$type/$type1'));
Please help me with this.