From 739fedf848018c9806574dad9c76d9385c59ff48 Mon Sep 17 00:00:00 2001 From: jim winstead Date: Sat, 8 Dec 2001 22:14:24 +0000 Subject: [PATCH] file: incorporate user notes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64297 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 0e9bb576f1..cb73e4e11a 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -720,6 +720,13 @@ fclose ($fd); element of the array corresponds to a line in the file, with the newline still attached. + + + Each line in the resulting array will include the line ending, so you + still need to use trim if you do not want the line + ending present. + + You can use the optional second parameter and set it to "1", if you want to search for the file in the Line $line_num:; " . htmlspecialchars ($line) . "
\n"; + echo "Line $line_num:; ", htmlspecialchars ($line), "
\n"; } // get a web page into a string -$fcontents = join ('', file ('http://www.php.net')); +$fcontents = join ('', file ('http://www.php.net/')); ?> ]]>
+ ¬e.not-bin-safe; + &tip.fopen-wrapper; See also readfile, fopen, fsockopen, and