Skip to content

Instantly share code, notes, and snippets.

@tliff
Created May 12, 2020 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tliff/469c4313b29ee5b41b4836454169fe84 to your computer and use it in GitHub Desktop.
Save tliff/469c4313b29ee5b41b4836454169fe84 to your computer and use it in GitHub Desktop.
try {
if($plz >= 80331 && $plz <= 81929) {
$content= $this->getMGApiResponse($this->connectionpoint.'&locsearchtype=id&stat=6510867');
}
else {
$content= $this->getMGApiResponse($this->zipsearchurl.'&plz='.$plz);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment