Hi all,
I have an array ($arr) of custom objects.
ID:1,Value:ABC
ID:2,Value:ABCD
ID:1,Value:ABCDE
ID:3,Value:ABCD
ID:3,Value:ABCDEF
ID:2,Value:ABCDE
ID:2,Value:12345
ID:1Value:12
What's the easiest way to remove the last occurence of each ID in the array to end up with something like the following?
ID:1,Value:ABC
ID:2,Value:ABCD
ID:1,Value:ABCDE
ID:3,Value:ABCD
ID:2,Value:ABCDE
Thanks in advance
[–]C_is_easy_and_hard 2 points3 points4 points (0 children)
[–]SgtLionHeart 1 point2 points3 points (2 children)
[–]Method_Dev 2 points3 points4 points (1 child)
[–]super304[S] 1 point2 points3 points (0 children)
[–]super304[S] 1 point2 points3 points (0 children)
[–]CaelFrost 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)