PHP fflush() လုပ်ဆောင်ချက်
❮ PHP ဖိုင်စနစ် အကိုးအကားဥပမာ
အဖွင့်ဖိုင်တွင် buffed output အားလုံးကိုရေးပါ-
<?php
$file = fopen("test.txt","r+");
rewind($file);
fwrite($file, 'Hello World');
fflush($file);
fclose($file);
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
fflush() function သည် buffed output အားလုံးကို open file တစ်ခုသို့ ရေးပေးသည်။
အထားအသို
fflush(file)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
file | Required. Specifies the open file to write the buffered output to |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | အောင်မြင်မှုအပေါ် သစ္စာ၊ ကျရှုံးမှုတွင် မှားသည်။ |
---|---|
PHP ဗားရှင်း- | 4.0.1+ |
❮ PHP ဖိုင်စနစ် အကိုးအကား