PHP flush() လုပ်ဆောင်ချက်
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ
ဥပမာ
ဇာတ်ညွှန်းမပြီးမီ ဘရောက်ဆာသို့ စာတန်းတစ်ခုထုတ်ပေးပါ-
<?php
// Some browsers will not display the content if it is too short
// We use str_pad() to make the output long enough
echo str_pad("Hello
World!", 4096);
// Use flush() to send the string to the browser
flush();
// Display the rest of the content three seconds later
sleep(3);
echo "<br>";
echo "Hello World!";
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
လုပ်ဆောင်ချက်သည် ၎င်း၏ လက်ရှိ flush()
ကြားခံထားသော output ကို browser သို့ပေးပို့ရန် ဆာဗာအား တောင်းဆိုသည်။ ဆာဗာ ဖွဲ့စည်းမှုပုံစံသည် အမြဲတမ်း ထိုသို့ဖြစ်ရန် ခွင့်မပြုနိုင်ပါ။
အထားအသို
flush();
နည်းပညာဆိုင်ရာအသေးစိတ်
PHP ဗားရှင်း- | 4+ |
---|
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ