使用 $argc $argv 接受参数

echo "接收到{$argc}个参数";
print_r($argv);

getopt函数

$param_arr = getopt('a:b:');
print_r($param_arr);