Write a PHP script that parses JSON data and displays specific information.

<?php
$json_data = '{"name": "John", "age": 30, "city": "New York"}';
$data = json_decode($json_data, true);

echo "Name: " . $data['name'] . ", Age: " . $data['age'] . ", City: " . $data['city'];
?>

 

Post your Answer