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