PHP copy() လုပ်ဆောင်ချက်
❮ PHP ဖိုင်စနစ် အကိုးအကားဥပမာ
"source.txt" ကို "target.txt" သို့ ကူးယူပါ-
<?php
echo copy("source.txt","target.txt");
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
copy() function သည် ဖိုင်တစ်ခုကို ကော်ပီကူးသည်။
မှတ်ချက်- to_file ဖိုင်ရှိပြီးသား ဖြစ်ပါက ၊ ၎င်းကို overwrite လုပ်ပါမည်။
အထားအသို
copy(from_file, to_file, context)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
from_file | Required. Specifies the path to the file to copy from |
to_file | Required. Specifies the path to the file to copy to |
context | Optional. Specifies a context resource created with stream_context_create() |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုအပေါ် သစ္စာ၊ ကျရှုံးမှုတွင် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 4.0+ |
PHP Changelog- | PHP 5.3 - ထည့်သွင်းထားသော အကြောင်းအရာ ကန့်သတ်ချက် |
❮ PHP ဖိုင်စနစ် အကိုးအကား