How can JSON strings be decoded into objects or arrays in PHP?

To decode JSON strings into objects or arrays in PHP, you can use the `json_decode()` function. This function takes a JSON string as input and returns either an object or an array depending on the parameters passed to it. By utilizing this function, you can easily convert JSON data into PHP objects or arrays for further manipulation or processing.

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

// Accessing the decoded data
echo $decodedData->name; // Output: John
echo $decodedData->age; // Output: 30
echo $decodedData->city; // Output: New York