Get file contents


















Maximum length of data read. The default is to read until end of file is reached. Note that this parameter is applied to the stream processed by the filters. The function returns the read data or false on failure. This function may return Boolean false , but may also return a non-Boolean value which evaluates to false. Please read the section on Booleans for more information. Version Description 8. Example 1 Get and output the source of the homepage of a website.

PHP Directory Functions. PHP Error. PHP Filesystem Functions. PHP Math Functions. PHP String Functions. PHP Network Functions. PHP Gmagick Functions. PHP Imagick Functions. Table of Contents. Improve Article. Save Article. Like Article. Last Updated : 30 Nov, Specifies the context of the file handle. Context is a set of options that can modify the behavior of a stream.

Can be skipped by using NULL. Specifies where in the file to start reading. Negative values count from the end of the file. PHP 7.



0コメント

  • 1000 / 1000