Complete PHP Filesystem Reference
The copy() function copies a file.
This function returns TRUE on success and FALSE on failure.
| Parameter | Description |
|---|---|
| file | Required. Specifies the file to copy |
| to_file | Required. Specifies the file to copy to |
Note: If the destination file already exists, it will be overwritten.
The output of the code above will be:
Complete PHP Filesystem Reference
Your message has been sent to W3Schools.