Glossary Term
file_put_contents()
file_put_contents() — This function is identical to calling fopen, fwrite and fclose successively to write data to a file.
If filename does not exist, the file is created. Otherwise, the existing file is overwritten, unless the FILE_APPEND flag is set.
Inputs: filename: Path to the file where to write the data. data: The data to write. Can be either a string, an array or a stream resource. If data is a stream resource, the remaining buffer of that stream will be copied to the specified file. This is similar with using stream_copy_to_stream. context: A valid context resource created with stream_context_create.
Returns: This function returns the number of bytes that were written to the file, or false on failure.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
