$location="2020-10-16 04:08PM -0700
City: Las Vegas
Region: Nevada
Zip Code: 89149";
$replace= array("City: ","Region: ","Zip Code: ");
$location = str_replace($replace,"",$location);
$arr = explode("\n",$location);
$city = trim($arr[1]);
$region = trim($arr[2]);
$zipcode = trim($arr[3]);
|