Skip to content

Instantly share code, notes, and snippets.

@TakesTheBiscuit
Created September 15, 2017 12:16
Show Gist options
  • Save TakesTheBiscuit/65d05cb1a0fb904f6c910cc45b9c9eff to your computer and use it in GitHub Desktop.
Save TakesTheBiscuit/65d05cb1a0fb904f6c910cc45b9c9eff to your computer and use it in GitHub Desktop.
Police UK postcode lookup
<?php
$addresses = explode('||',file_get_contents('https://ukpoliceimageappeal.co.uk/postcode/lookup?code=m146pb'));
if (count($addresses)) {
foreach ($addresses as $address) {
echo str_replace('//',', ',str_replace(' ','',$address));
echo "<hr>";
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment