-1

What is the difference between declaring:

$myArray = Array();

and:

$myArray = [];

1 Answers1

1

There's no difference, it's just two alternative syntaxes. See https://www.php.net/manual/en/language.types.array.php

ADyson
  • 57,178
  • 14
  • 51
  • 63