@guest598594 Thanks for the tip, you\'re right. I wrote that 5 years ago, I\'ll revisit it and clean stuff up.
I tacked on the last $len check of < 11 at the end just before submitting this, so I didn\'t make the most efficient way possible. Also, I don\'t bother with a wildcard when unsetting variables unless there are more than 2. Just a rule of thumb I go by. Most of my snippets have more than 2, but this one doesn\'t. I will probably clean up the code a little bit soon, but besides that everything works fine.