So far I have not found any direct explanation. I found out two ways of declaring array. I am basically used to
$myArray = array();
I however found out another way which is:
$myArray = [];
why would anyone use the second option over the first. Is there any difference in terms of memory allocated?