当前位置:主页 > 软件编程 > PHP代码 >
时间:2021-08-01 08:54:53 | 栏目:PHP代码 | 点击:次
fseek($fp,-1,SEEK_END);
$s = '';while(($c = fgetc($fp)) !== false) { if($c == "\n" && $s) break; $s = $c . $s; fseek($fp, -2, SEEK_CUR);}fclose($fp);echo $s;exit;