What\'s better to use in PHP for appending an array member,
$array[] = $value;
or
array_push($array, $value);
Second one is a function call so generally it should be slower than using core array-access features. But I think even one database query within your script will outweight 1.000.000 calls to array_push().
array_push()