Thanks for all your help.
I'm sure I over complicated this script, but it helps me to understand the functions. As I said before, when I figure things out, I rewrite the sections.
So, originally I used RAND with a range between 108832 and 642096. This is the lowest id number to the highest. Not every number in this range is an active employee however.
This makes it fun, because as a lottery game, there is a smaller range to select from, but also a lot of additional inactive numbers that can pop up.
As a raffle game, I can change some of the code so it just picks a random number from the employee id array instead. That way there is a guaranteed winner.
Why did I complicate the code with switches and implodes and such?
Well... I found an old php lottery game script that is automated with a timer and displays the winning numbers as balls.... which is just a gif image obviously.
The 6 digit id numbers are a single number, versus 6 individual numbers, so they won't display properly in the ball image.
As 6 separate numbers, they can be displayed in the ball images, and as a single 6 digit number, I can them check the id array for a match.
Again, I'm sure I've over complicated this since I'm just learning php, and there is probably a WAY simpler way to do it, but I'm enjoying figuring out how it all works.