note 89588 deleted from function.getopt by sobak
| From: | sobak@php.net | Date: | Fri, 02 Dec 2016 03:55:15 +0000 |
| Subject: | note 89588 deleted from function.getopt by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207923@lists.php.net to get a copy of this message | ||
Note Submitter: m at ttcarter dot com
----
I wrote a library some time ago to counter some of the missing features of the rather limited
'getopt' function. The library as well documentation can be found on my website at http://hash-bang.net/2008/12/missing-php-functions-getopts/
It provides functionality for long switches (e.g. '--delete'), incrementing switches (e.g.
'-v -v -v' or '-vvv' for very, very verbose), long values (e.g. '--exclude
this.file') and lots more.