转载声明:http://blog.csdn.net/fdipzone/article/details/51945892
php在cli模式下接收参数有两种方法
1.使用argv数组
2.使用getopt方法 getopt() 函数的用法,详细见php官方手册