Updated fetch_array

Made it be able to return associate, number, or both for type.