In a multidimensional array, how would you access the second element of the first array?

  • $array[0][1]
  • $array[1][0]
  • $array[2][1]
  • $array[0][2]
In a multidimensional array, you access elements by specifying the indices for each dimension. To access the second element of the first array, you would use $array[0][1], where 0 represents the first array and 1 represents the second element within that array.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *