<?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
Write a PHP script that connects to a MySQL database and fetches data from a table. |
Create a PHP script that calculates and displays the area of a rectangle given its length and width. |
Write a PHP script that generates and displays a list of the first 10 Fibonacci numbers. |
How to convert a temperature from Celsius to Fahrenheit using php. |
How to show location using google map in JavaScript? |
what is PhpUnit? |
how to get country, state and city select option using google map api in php |
Create a PHP script that counts the number of occurrences of each word in a given sentence. |
