To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationfile_get_contents

file_get_contents (string file[, boolean escape_string]) ⇒ string

Reads all text within a file and returns it as a string.

First available: Version 1.3.2

Notes

Prior to ZPE 1.8.5 (May 2020, Carter) the second argument was called format and was designed to accept the word bytes or string to determine how the output would be formatted. 1.8.5 changed the function to no longer accept byte output and moved it to file_get_bytes.

ZPE 1.8.5 also can use this function to read text from a URL on the web.

Version 1.5.3 added the format and escape_string parameters.

Prior to version 1.7.6 this method was called file_open. It was renamed as the file_open method was reused.

Comments

There are no comments on this page.

New comment
Reply
Provide feedback on this page
Comments are sent via email to me.