in reply to foreach returning to start of array

Good suggestions, but in direct answer to your question: use ` unless ' instead of ` until '.

    p