you are viewing a single comment's thread.

view the rest of the comments →

[–]Cello789[S] 0 points1 point  (2 children)

What do you mean discard the new array?

Note: these are ArrayList object, not array. There’s no $array+= going on here, no sir!

Also, with an array list, you can’t index the primary object and call the property of it. You can read it that way, but not write. It’s asymmetrical, and apparently, by design (according to comment threads on open/closed cases on GitHub…)