In the context of PHP, how can the JSON string be converted into an array for easier manipulation and access to its elements?

To convert a JSON string into an array in PHP, you can use the `json_decode()` function. This function takes the JSON string as its parameter and returns an associative array that represents the data. This array can then be easily manipulated and accessed using array functions in PHP.

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

// Now $array is an associative array that can be accessed like any other array
echo $array['name']; // Output: John
echo $array['age']; // Output: 30
echo $array['city']; // Output: New York