How can JSON be read and output as an array in PHP?

To read and output JSON as an array in PHP, you can use the `json_decode()` function to convert the JSON data into a PHP array. This function takes a JSON string as its parameter and returns a PHP array. You can then iterate over the array and output its values as needed.

<?php
$json_data = '{"name": "John", "age": 30, "city": "New York"}';
$array_data = json_decode($json_data, true);

foreach ($array_data as $key => $value) {
    echo $key . ': ' . $value . '<br>';
}
?>