PHP GetOpts class

GetOpts is a simple PHP class that takes a list of arguments and a list of valid options and allows you to loop through the former in order to get the latter.

Versions

The code

Demo