Use array_push() instead of using index.