I am doing a queue system using PHP, kind of you take a ticket and wait for counter to call your number. I have several audio files that recorded the numbers from 0-9.
I want to know how can I play these files according to current number. Ex. if current number is 1005, it will play the '1' audio files first, then play '0' twice, and lastly play '5'.
Please give me some ideas. Thanks.