Advertisement
ph4x35ccb

array tridimencional

Feb 26th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2. $arr = [
  3.     1 => [ //chave principal 1
  4.         1 => [ // chave bidimencional 1
  5.             1 =>['teste_1_1_1', // chave tridimencional chave zero
  6.                  'teste_1_1_2',
  7.             ],
  8.             2 => 'teste1_2'
  9.         ],
  10.         2 => 'teste2',
  11.         3 => 'teste3',
  12.     ]
  13. ];
  14. echo $arr [1] [2] [1]; // acesso tridimencional
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement