Sortie du snippet PHP "Création d'une matrice à "n" dimensions avec PHP"

Environnement :

  • Strangebuzz Snippet VM : 6.4.2
  • PHP : 8.3

Sortie du code exécuté :

array(2) {
  [1]=>
  array(2) {
    [1]=>
    string(0) ""
    [2]=>
    string(0) ""
  }
  [2]=>
  array(2) {
    [1]=>
    string(0) ""
    [2]=>
    string(0) ""
  }
}
array(3) {
  [1]=>
  array(3) {
    [1]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [2]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [3]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
  }
  [2]=>
  array(3) {
    [1]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [2]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [3]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
  }
  [3]=>
  array(3) {
    [1]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [2]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
    [3]=>
    array(3) {
      [1]=>
      NULL
      [2]=>
      NULL
      [3]=>
      NULL
    }
  }
}
OK