Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

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

Comments are welcome and encouraged, including disagreement and critique. However, this is not a space for abuse. Disagreement is welcome; personal attacks, harassment, or hate will be removed instantly. This site reflects personal opinions, not universal truths. If you can’t distinguish between the two, this probably isn’t the place for you. The system temporarily stores IP addresses and browser user agents for the purposes of spam prevention, moderation, and safeguarding. This data is automatically removed after fourteen days.

file_get_contents"/>

Comments powered by BalfComment

Feedback 👍
Comments are sent via email to me.