copy() function in php

copy() function in php

copy() function used copy a file in php,this function returns true on success and else failure.
syntax
copy(file,to_file)
it means first parameter file is source file and to_file is destination file
example 
<?php
echo copy("test.txt","test1.txt");
?>
 it will be returns  1