How does PHP obtain a line of data with a carriage return when reading a large file. When PHP reads a large file, how does one get a line of data with a carriage return character .?? ------ Solution -------------------- what are you talking about? ------ solution -------------------- read the php manual fgets-read a line from the file pointer ------ solution --------------- when PHP reads a large file, how to get a line of data with carriage return.
When PHP reads a large file, how does one get a line of data with a carriage return character .??
------ Solution --------------------
/R/n. what do you mean?
------ Solution --------------------
View php Manual
Fgets-read a row from the file pointer
------ Solution --------------------
$ Buf = fgets ($ fp );
$ Buf indicates the read content.
I don't know what you want
------ Solution --------------------
Discussion
$ Buf = fgets ($ fp );
Echo $ buf;
All text content is output.
I want a line in the text.