<?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
How to call travelport catalogproductofferings api using php? |
How to show location using google map in JavaScript? |
Write a PHP script that calculates the sum of digits in a given number. |
how to get current latitude and longitude using google map api in php? |
Write a PHP script that generates and displays a simple multiplication table for the numbers 1 to 5. |
Write a PHP script that generates and displays a list of the first 10 Fibonacci numbers. |
Create a PHP script that uses sessions to store and display user information. |
how to get current lat and lng from ip address using google map api in php? |