Tokens would be the natural choice for achieving everything you want here - $addtok(), $istok(), and $remtok(), would make the whole thing a lot simpler.


Spelling mistakes, grammatical errors, and stupid comments are intentional.