http://www.bkjia.com/phpjc/478473.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/478473.htmltecharticle?php error_reporting(0); echo\n.输入要整理的文件:.\n; $dic=trim(fgets(stdin)); $file=file($dic); $array=preg_replace(/($\s*$)|(^\s*^)/m,,$file); //消除空行 $new_array=a...
