- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
function commandLineArgsToGet() {
global $argv;
foreach ($argv as $arg) {
$param = explode('=', $arg);
if (count($param) == 2) {
$_GET[$param[0]] = $param[1];
}
else {
$_GET[$param[0]] = null;
}
}
}