Object function reference

append

A reference entry for append

Object function · File

append(string contents) ⇒ boolean

Provides the append operation for this object.

Example

YASS
$file->append("A new line.")

Notes

Use append when text should be added to the end of the file rather than replacing its contents.