From 7c9f531fbf55e87ac45adc8e79693c87d681e860 Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Tue, 4 Dec 2001 20:10:08 +0000 Subject: [PATCH] Add documentation as per mr. zmievski's request git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@63889 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 13ba6d12ef..2f1365af76 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1,5 +1,5 @@ - + Filesystem functions Filesystem @@ -595,14 +595,15 @@ fclose ($fp); string fgets int fp - int length + int length Returns a string of up to length - 1 bytes read from the file pointed to by fp. Reading ends when length - 1 bytes have been read, on a newline (which is included in the return value), or on - EOF (whichever comes first). + EOF (whichever comes first). If no length is specified, the length + defaults to 1k, or 1024 bytes. If an error occurs, returns &false;.