PHP stream_copy_to stream() လုပ်ဆောင်ချက်
ဥပမာ
ထုတ်လွှင့်မှုတစ်ခုမှ အခြားဒေတာ 1024 bytes ကို ကူးယူပါ-
<?php
$src = fopen("test1.txt", "r");
$dest = fopen("test2.txt", "w");
//
Copy 1024 bytes to test2.txt
echo stream_copy_to_stream($src, $dest, 1024)
. " bytes copied to test2.txt";
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
stream_copy_to_stream() လုပ်ဆောင်ချက်သည် ဒေတာစီးကြောင်းတစ်ခုမှ အခြားတစ်ခုကို ကူးယူသည်။
အထားအသို
stream_copy_to_stream(src, dest, maxlength, offset)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
src | Required. Specifies the source stream to copy data from |
dest | Required. Specifies the destination stream to copy data to |
maxlength | Optional. Specifies the maximum bytes to copy |
offset | Optional. Specifies the offset where to start to copy data |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ကူးယူထားသော စုစုပေါင်းဘိုက်များ။ ရှုံးနိမ့်မှုအပေါ် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 5.0+ |
PHP Changelog- | PHP 5.1- အော့ဖ် ဆက် ပါ ရာမီတာကို ထည့်ထားသည်။ |
❮ PHP Stream ရည်ညွှန်းချက်