Re: Console_Getopt patch
| From: | Pierre-Alain Joye | Date: | Sun, 04 Aug 2002 16:47:57 +0000 |
| Subject: | Re: Console_Getopt patch | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8158@lists.php.net to get a copy of this message | ||
On Sun, 4 Aug 2002 18:35:11 +0200
Arnaud Limbourg <arnaud.limbourg@club-internet.fr> wrote:
> Hello,
> if (isset($args[0]{0} != '-') && $args[0]{0} != '-') {
> array_shift($args);
> }
if (isset($args[0]{0}) && $args[0]{0}!= '-') {
array_shift($args);
}
can be better :)
pa