In PHP, a multidimensional array is an array that contains one or more arrays as its elements. Here's an example of how to declare and use a multidimensional array in PHP:
$myArray = array(
array(1, 2, 3),
array(4, 5, 6),
array(7, 8, 9)
);
echo $myArray[1][2];
foreach ($myArray as $row) {
foreach ($row as $col) {
echo $col . ' ';
}
echo '<br>';
}
In this example, we declare a multidimensional array $myArray that contains three sub-arrays, each with three elements. We access an element in the array using two indices, one for the row and one for the column. We also loop through the array using two foreach loops, one for the rows and one for the columns.