|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-09 12:21 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Description: ------------ When fgets() read text file line by line, it eliminate blank spaces if line contains more than one space. Reproduce code: --------------- $handle = fopen($myfile, "r"); while (!feof($handle)) { $getline = fgets($handle); } Expected result: ---------------- line1 one two 100 line2 12 190 99.20 Actual result: -------------- line1 one two 100 line2 12 190 99.20