I am writing a PHP script that will use a lot of parameters. While I know how to check them and work with them, I am looking for an ELEGANT way to work with the parameters that emulates how most Linux applications and packages work. So, here are the requirements:
1. Minimal, efficient and elegant code
2. Paramters may be issued in ANY order. (Example: command --first --second --third or command --third --first --second)
3. Code must be re-usable for different scripts.