It's completely normal on my machine, but when I uploaded it to the server, I found that the data on the line was displayed as 2 lines, and there were 10 rows of data, and the result was 15 lines! It turns out that in some versions of PHP (less than php4.0.0), the string for this method cannot be more than 8,190 characters, and I found the same explanation in Php.net's feedback for file (), which reads as follows:
In PHP 4.0.0 and lower, array elements are never longer than 8190. Longer lines are split. This limitation is removed in PHP 4.0.1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.