note 43585 deleted from function.fgets by nlopess

From: Date: Sat, 26 Jun 2004 16:42:38 +0000
Subject: note 43585 deleted from function.fgets by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-71790@lists.php.net to get a copy of this message
Note Submitter: keanu77@tiscali.it ---- in my opinion the best way to read an entire file is using the function called file, that will return an array in which every element will be a line of the file. Then, using the function implode, it will be possible obtaining only one string that contains the entire file. Es. : $string=implode('',file("file_name.dat")); // $string contains the entire file.

« previous php.notes (#71790) next »