note 8580 added to implode

From: Date: Mon, 18 Sep 2000 15:49:27 +0000
Subject: note 8580 added to implode
Groups: php.notes 
Request: Send a blank email to php-notes+get-5195@lists.php.net to get a copy of this message
$file_text = implode('',file("data.htm")); slurps file data.htm into variable $file_text unchanged (vs the file content). Newlines are all in the right place because newlines were the last char in each array element. That's how file() splits the input. http://www.php.net/manual/function.implode.php

« previous php.notes (#5195) next »