<?php
// Simulate fetching a list of countries (you would typically fetch data from a database)
$countries = array("United States", "Canada", "United Kingdom", "Australia", "Germany");

// Encode the data as JSON and send it back to the client
header("Content-Type: application/json");
echo json_encode($countries);
?>