In the PHP manual, (array_push) says..
If you use array_push() to add one element to the array it\'s better to use $array[]
array_push — Push one or more elements onto the end of array
Take note of the words "one or more elements onto the end" to do that using $arr[] you would have to get the max size of the array
$arr[]