How can you access a specific value in a multidimensional array in PHP?

To access a specific value in a multidimensional array in PHP, you need to specify the index for each dimension of the array. For example, if you have a multidimensional array called $myArray and you want to access the value at index [2][1], you would use $myArray[2][1]. This allows you to pinpoint the exact value you want within the nested arrays.

$myArray = array(
    array(1, 2, 3),
    array(4, 5, 6),
    array(7, 8, 9)
);

$value = $myArray[2][1]; // Accessing the value at index [2][1]

echo $value; // Output: 8