public function getLocationString($countryID, $stateID, $cityID, $regionID) { $returnValue = ''; if ($countryID != 0) { if ($stateID != 0) { if ($cityID != 0) { if ($regionID != 0) { $returnValue = LocationUtilities::getRegionName($regionID) . ", "; } $returnValue = $returnValue . LocationUtilities::getCityName($countryID, $stateID, $cityID) . ", "; } $returnValue = $returnValue . LocationUtilities::getStateName($countryID, $stateID) . ", "; } $returnValue = $returnValue . LocationUtilities::getCountryName($countryID); } if (strlen($returnValue) == 0) { $returnValue = 'Location Not Specified'; } return $returnValue; }