<?php $matriz = [ [10, 20], [30, 40] ]; foreach ($matriz as $i => $linha) { foreach ($linha as $j => $valor) { echo "matriz[$i][$j] = $valor\n"; } } ?>
To embed this project on your website, copy the following code and paste it into your website's HTML: