Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $arr = [
- 1 => [ //chave principal 1
- 1 => [ // chave bidimencional 1
- 1 =>['teste_1_1_1', // chave tridimencional chave zero
- 'teste_1_1_2',
- ],
- 2 => 'teste1_2'
- ],
- 2 => 'teste2',
- 3 => 'teste3',
- ]
- ];
- echo $arr [1] [2] [1]; // acesso tridimencional
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement