Home >> PHP >> copy() function in PHP

copy() function in PHP

The copy() function used to copies of the file source to destination.

Returns true on success or false on failure.

Syntax

copy(source_file,to_destination_file)

Example

echo copy("source.txt","destination.txt");

Output

1

Post Your Comment

Next Questions
delete() function
dirname() function
disk_free_space() function
disk_total_space() function
diskfreespace() function
feof() function
fflush() function
fgetc() function
fgetss() function
file_put_contents() function
fileatime() function
filectime() function
filemtime() function
fileowner() function
fileperms() function
filesize() function
filetype() function
flock() function
fputs() function
fscanf() function
fstat() function
ftell() function
ftruncate() function
is_executable() function
is_file() function

Copyright ©2022 coderraj.com. All Rights Reserved.