时间:2021-07-01 10:21:17 帮助过:10人阅读
$month = $_POST['month']; $filename = sprintf("1.txt"); $f = fopen($filename, "r"); if(!$f) { die("文件:".$filename."不存在."); } $lines = array(); while(!feof($f)) { $lines[] = fgets($f); } fclose($f); for($i = 0; $i < count($lines); ++$i) { if(preg_match_all('/[^\t]+/', $lines[$i], $m) > 0) $lines[$i] = $m[0]; } echo "
|