By typing arrays in PHP, I ended up finding some different ways to open an array, but in the end they have the same destination, for example:
$arr = [
'dado' => ''
];
Or
$arr = array(
'dado' => ''
);
Or
$arr['dado'] = '';
And in another context, adding keys:
$a = 1;
while($a <= 10){
$arr[$a] = 'dado'.$a;
$a++
}
Is there any relevant difference in these different ways to open an array?
What would be the most 'correct' way to open an array?