| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2003-04-28 03:45 UTC] arnaud@php.net
  [2003-04-28 03:57 UTC] arnaud@php.net
  [2003-06-30 05:20 UTC] cox@php.net
  [2003-07-07 02:42 UTC] sniper@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 15:00:01 2025 UTC | 
// bug in Console/Getopt.php workaround // if there isn't a '-' in the first arg it skips the first arg // it still skips the first arg if the first arg does not have a - // but the second arg does // below is a work around if(!array_key_exists(0,$options[0]) && isset($args[0]) ) { $tmparray = array_reverse($options[1]); $tmparray[] = $args[0] ; $options[1] = array_reverse($tmparray); unset($tmparray); }