The copy() file system function in PHP will make a copy of a file that you specify on the server, It will place the new copy where you specify with a name you give it. This function traditionally takes two parameters with the first being the file to copy, and the second parameter is the path and file name of the copy you are creating.
Here is the Example:
Tips and Notes

Note: If the destination file already exists, it will be overwritten.

The output of the code above will be: