⑴ 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>';