Created
September 15, 2017 12:16
-
-
Save TakesTheBiscuit/65d05cb1a0fb904f6c910cc45b9c9eff to your computer and use it in GitHub Desktop.
Police UK postcode lookup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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