<?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 function to count the number of vowels in a string. |
How to call travelport catalogproductofferings api using php? |
how to get country, state and city select option using google map api in php |
how to get current latitude and longitude using google map api in php? |
Write a PHP function to check if a given string is a palindrome |
How to get the largest element in an array of numbers |
how can i solve php header errors? |
Write a PHP script that checks if a given string is a valid email address. |