diff --git a/reference/spl/splfileobject/fread.xml b/reference/spl/splfileobject/fread.xml index 49c5c0917c..2e3da9896b 100644 --- a/reference/spl/splfileobject/fread.xml +++ b/reference/spl/splfileobject/fread.xml @@ -35,9 +35,50 @@ &reftitle.returnvalues; - The string read from the file. + Returns the string read from the file &return.falseforfailure;. + + + &reftitle.examples; + + + <methodname>SplFileObject::fread</methodname> example + +fread($file->getSize()); +?> +]]> + + + + + + + &reftitle.notes; + + + Note that SplFileObject::fread reads from the current + position of the file pointer. Use SplFileObject::ftell + to find the current position of the pointer and SplFileObject::rewind + (or SplFileObject::fseek) to rewind the pointer position. + + + + + + &reftitle.seealso; + + + fread + + + +