Get array element by ref example

If i want to match functionality of older UE versions, which of these two options i should choose? I am watching older tutorial where older version is used and i have no clue.
Thanks