Read arguments

This PHP script can be used to read and validate shell command line arguments. It can parse the values of arguments passed to a PHP script started from a command line shell to validate them according to rules defined by the current script.

It supports mandatory arguments, optional arguments, switch arguments, multiple alternatives to an option switches, and a special argument that makes show a nicely formatted help usage message.

The script extract the argument values into an array if the argument rules are validated.

- PHP 3.0 or Higher

License type: BSD
Date added: 4 years, 12 months 4 days ago | Last updated: 4 years, 11 months 29 days ago

More popular Validation

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • read-cli-arguments.png
  • 4.0 KB
  • 09/30/2010 10:39:57
Hot Scripts