<?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'];
?>
<?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'];
?>
Related
Create a PHP script that uses sessions to store and display user information. |
How to show location using google map in JavaScript? |
How to check whether a given year is a leap year using php. |
Write a PHP script that calculates the sum of digits in a given number. |
Write a PHP script that parses JSON data and displays specific information. |
Create a PHP script that checks whether a given number is a prime number or not. |
how to get response status in api using curl php? |
Write a PHP script that generates a random password of a specified length. |