<?phpheader("Content-type:text/html;charset=utf-8");if(isset($argv[1])){ if(PHP_VERSION>7) { $str=$argv[1]; } else { $str=iconv("GBK","UTF-8",$argv[1]);//获取参数作为测试数据 }}//补充代码beginecho $str;//补充代码end?>