I have an input format similar to this, and I need to convert it to GMT format:
$input = array(
"gmt" => "+7",
"datetime" => "2017-10-10 12:10:12"
);
the input contains the gmt array index, which shows the gmt format, and the datetime index shows the date in "Ymd h: i: s", which should be converted from GMT + 7 to GMT.
source
share