Sortie du snippet PHP "Tester si un tableau est une liste avec PHP"

Environnement :

  • Strangebuzz Snippet VM : 6.4.2
  • PHP : 8.3

Sortie du code exécuté :

array(4) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(4)
  [3]=>
  int(8)
}
bool(true)
array(5) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(4)
  [3]=>
  int(8)
  ["foo"]=>
  string(3) "bar"
}
bool(false)