note 50949 added to function.file-get-contents

From: Date: Mon, 14 Mar 2005 18:22:32 +0000
Subject: note 50949 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-86433@lists.php.net to get a copy of this message
About Daniellehr[-at-]gmx[-dot-]de's post... You would need to use implode("\n", file($filename)) to get the functionality of file_get_contents, it appears that the \n was missing. Funny, I was using explode("\n", file_get_contents($filename)) for a while before I realized that file() returned the same thing, LOL! ---- Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50949 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50949&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50949&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50949&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50949&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50949&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50949&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86433) next »