PHP File copy() Function With Example

PHP File Copy Function-copy():

The PHP copy function is used to copy files.

Syntax:

  copy($file,$copied_file);


Example:

Here,

  • “$file” specifies the file path and name of the file to be copied.
  • “copied_file” specified the path and name of the copied file.

Read Also: