Object function reference

copy

A reference entry for copy

Object function · File

copy(string destination) ⇒ boolean

Provides the copy operation for this object.

Example

YASS
$source = new File("notes.txt")
$source->copy("notes-copy.txt")