2
Answers

searching an array of classes

chris

chris

17y
2.3k
1

I have an array of classes.  Each class contains two values (UserName, and UserID).

I need to search the array such as "give my the ID for username Bob Smith."

Other than looping through each value in the array, is there another way I can search it such as searcharray(username, "Bob Smith")?

Answers (2)