Fife Tourism Partnership API
Example usage:
//point to the file
$url = "http://www.api.fifetourismpartnership.org/methods/accommodation.php";
//get contents
$json = file_get_contents($url);
//decode it as an array
$jsonArray = json_decode($json, true);
//loop through the data and display it
foreach ($jsonArray['accommodation'] as $row) {
echo "Title: ".$row['title'];
}
Example output
- Title: 33 Nethergate
- Title: 69 Cromwell Road
- Title: A J Cuthill & Co
- Title: Abbeyford Leisure
- Title: Abbotshill Self-Catering Holidays