$i; $i++) { $_ARG[$string[$i]] = true; } } else { /* --arg=val will assign $_ARG['arg'] to 'val' */ /* --arg (or --arg=true) will assign $_ARG['arg'] to true */ /* --arg=false will assign $_ARG['arg'] to false */ $_ARG[$key] = $arg; } } else { /* assume command input parm, add each to input array */ $_ARG['input'][] = $arg; } } return $_ARG; } }