How can you access individual elements in a JSON array in PHP?
To access individual elements in a JSON array in PHP, you first need to decode the JSON string into a PHP array using the `json_decode()` function. Once you have the array, you can access individual elements using their keys or indexes.
$jsonString = '[{"name":"John","age":30},{"name":"Jane","age":25}]';
$array = json_decode($jsonString, true);
// Accessing the first element in the array
echo $array[0]['name']; // Output: John
// Accessing the second element in the array
echo $array[1]['age']; // Output: 25