⑴ php鍙浠ラ亶鍘嗕竴涓猼xt鏂囦歡琛屼箞銆佸氨鏄涓琛屼竴琛屽湴閬嶅巻
$handler=fopen('test6.txt','r');//鎵撳紑鏂囦歡while(!feof($handler)){$m[]=fgets($handler,4096);//fgets閫愯岃誨彇錛4096鏈澶ч暱搴︼紝榛樿や負1024}fclose($handler);//鍏抽棴鏂囦歡//杈撳嚭鏂囦歡echo'<pre>';print_r($m);echo'</pre>';