UK[ˈkɒpi] US[ˈkɑ:pi]
n.Copy; a copy; (newspaper, periodical, etc.) manuscript; written material prepared for typesetting
vt.& vi. Copy; copy; allow copying
vt. Copy; imitate; imitate the style or pattern of; copy
Third person singular: copies Plural: copies Present participle: copying Past tense: copied past Word participle: copied
php copy() function syntax
Function:Copy files.
Syntax: copy(source,destination)
Parameters:
Parameters | Description |
source | Required. Specifies the files to be copied. |
destination | Required. Specifies the destination for copied files. |
Note: If the target file already exists, it will be overwritten.
php copy() function example
<?php $file = "index.php"; $res = copy($file,"test.txt"); if($res) { echo "文件复制成功"; }else{ echo "文件复制失败"; } ?>