Object function reference

write

A reference entry for write

Object function · File

write(string contents) ⇒ boolean

Provides the write operation for this object.

Example

YASS
$file->write("Hello from ZPE.")

Notes

This corresponds to the historical file_put_contents operation. Writing replaces the existing text.