How can PHP be used to decode JSON output from a file?
To decode JSON output from a file in PHP, you can use the `file_get_contents()` function to read the JSON data from the file, and then use the `json_decode()` function to decode the JSON string into a PHP array or object.
// Read JSON data from a file
$jsonData = file_get_contents('data.json');
// Decode the JSON data into a PHP array
$decodedData = json_decode($jsonData, true);
// Access the decoded data
var_dump($decodedData);