Is there a PHP library that I can use to parse options and parameters in a command line php script? I do know the function getopt, but is there something similar for parameters?
Is there a PHP library that I can use to parse options and parameters
Share
Use
getoptfor options and the$argvarray for parameters – http://php.net/manual/en/reserved.variables.argv.phpalso have a look at http://docs.php.net/manual/en/features.commandline.php for stuff like reading arguments from
$argvof the form--name=VALUE