array repetition
Posted: Wed Jul 07, 2010 5:09 pm
Okay.
So i have an array
Shane
Tom
Terry
Bob
Bill
I want a $function to call up each value in this array one at a time, proceeding down the list from Shane ยป Bill
Once it hits Bill, the next time, I'd like it to jump back up to Shane, and make it's way down the list again in an infinite loop.
When my script is executed I want $function to display as a different value (in order) from the array each time.
ie: $function = 'Shane', $function = "Tom" etc.
Let me know. Appreciate the help!
So i have an array
Shane
Tom
Terry
Bob
Bill
I want a $function to call up each value in this array one at a time, proceeding down the list from Shane ยป Bill
Once it hits Bill, the next time, I'd like it to jump back up to Shane, and make it's way down the list again in an infinite loop.
When my script is executed I want $function to display as a different value (in order) from the array each time.
ie: $function = 'Shane', $function = "Tom" etc.
Let me know. Appreciate the help!