For example, for an employee clock in program, I type in the employee id, it searches the array to see if its there. Once the ID is found, I want to store the position of the ID number from the array, into an integer.
Well, if you use a for loop to iterate through an array, just store the value of whatever variable that you're iterating once the ID matches the one in the array (so just use an if statement).