$json_data = '{"name": "John", "age": 30, "city": "New York"}';
// Convert JSON data to PHP array
$php_array = json_decode($json_data, true);
// Check if decoding was successful
if ($php_array !== null) {
// Now $php_array contains the converted JSON data
var_dump($php_array);
} else {
// Handle the case where decoding failed
echo "JSON decoding failed!";
}