<?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 prevent SQL Injection using php |
How to show location using google map in JavaScript? |
what is PhpUnit? |
Create a simple PHP script that calculates the sum of all even numbers between 1 and 10. |
Create a PHP script that calculates and displays the area of a rectangle given its length and width. |
How to reverses a given string using PHP. |
how to get response status in api using curl php? |
Create a PHP function to count the number of vowels in a string. |
