How can JSON strings be decoded in PHP to read into variables?

To decode JSON strings in PHP and read them into variables, you can use the `json_decode()` function. This function takes a JSON string as its parameter and returns an object or array depending on the `assoc` parameter. By setting the `assoc` parameter to `true`, you can decode the JSON string into an associative array. Once decoded, you can access the values by using the keys of the associative array.

$jsonString = '{"name": "John", "age": 30, "city": "New York"}';
$data = json_decode($jsonString, true);

$name = $data['name'];
$age = $data['age'];
$city = $data['city'];

echo $name; // Output: John
echo $age; // Output: 30
echo $city; // Output: New York