note 91705 deleted from function.file by danbrown

From: Date: Tue, 23 Jun 2009 23:41:02 +0000
Subject: note 91705 deleted from function.file by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-157303@lists.php.net to get a copy of this message
Note Submitter: Dan Davidson ---- I might not understand the function correctly, but given the different types of textfiles, sometimes it ouputs the whole file as a string (php rpm version 5.1.6-20). I always use file_get_contents, then split on the newline characters like below: $arrayoflines=preg_split("/\r\n|\n|\r/",file_get_contents($filepath)); That seems to work better for me.

« previous php.notes (#157303) next »