How can JSON data be decoded into arrays for easier manipulation in PHP?

To decode JSON data into arrays for easier manipulation in PHP, you can use the `json_decode()` function. This function takes a JSON string as input and returns an array or object depending on the parameters passed. By decoding JSON data into arrays, you can easily access and manipulate the data within your PHP code.

// JSON data to be decoded
$jsonData = '{"name": "John", "age": 30, "city": "New York"}';

// Decode JSON data into an associative array
$arrayData = json_decode($jsonData, true);

// Accessing and manipulating the decoded array
echo $arrayData['name']; // Output: John
echo $arrayData['age']; // Output: 30
echo $arrayData['city']; // Output: New York