Current Location: Home> Function Categories> copy

copy

Copy the file
Name:copy
Category:File system
Programming Language:php
One-line Description:Copy the file.

Definition and usage

copy() function copies the file.

Example

 <?php
echo copy ( "source.txt" , "target.txt" ) ;
?>

Output:

 1

grammar

 copy ( source , destination )
parameter describe
source Required. Specifies the files to be copied.
destination Required. Specify the destination for copying the file.

illustrate

Copy the file from source to destination . Return TRUE if successful, otherwise return FALSE.

Similar Functions
Popular Articles