I wonder what version of php you are using, use square brackets []
for array is only supported in php 5.4
$array = [$hit1, $hit2, $hit3, $hit4, $hit5, $hit6];
Use normal way if you are under that version
$array = array($hit1, $hit2, $hit3, $hit4, $hit5, $hit6);