I'm was wondering if anyone knows of a native function to parse command line options in PHP via the cli that allows repeating options? getopt doesn't like something like: program.php -w "WARNING1" -w "WARNING2"
I would make use of the pipe symbol and get the user to pass me WARNING1|WARNING2 however because each option is a regex they may use this already, and I've seen perl working this way.
So any ideas?
Thanks in advance.
$argvvariable. That will contain all command line values: php.net/manual/en/reserved.variables.argv.php