Reading specific line of a file in PHP

前端 未结 6 1567
攒了一身酷
攒了一身酷 2020-12-11 05:33

I am working on reading a file in php. I need to read specific lines of the file.

I used this code:

fseek($file_handle,$start);
while (!feof($file_ha         


        
6条回答
  •  忘掉有多难
    2020-12-11 05:57

    You could use function file($filename) . This function reads data from the file into array.

提交回复
热议问题