पीएचपी ob_implicit_flush () समारोह
❮ पीएचपी आउटपुट नियंत्रण कार्य
उदाहरण
आउटपुट उत्पन्न करने वाले प्रत्येक कथन पर ब्राउज़र को तुरंत सामग्री भेजें:
<?php
// Turn on implicit flushing
ob_implicit_flush(1);
// 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);
// Even though the script is still running, the browser already
can
see the content
sleep(3);
?>
परिभाषा और उपयोग
ob_implicit_flush()
फ़ंक्शन निहित फ्लशिंग को सक्षम या अक्षम करता है । सक्षम होने पर, अंतर्निहित फ्लशिंग उत्पन्न होते ही सीधे ब्राउज़र को आउटपुट भेजता है ताकि flush()
फ़ंक्शन को कॉल करने की आवश्यकता न हो।
वाक्य - विन्यास
ob_implicit_flush(flag);
पैरामीटर मान
Parameter | Description |
---|---|
flag | When set to 1, implicit flushing is turned on. When set to 0, implicit flushing is turned off. |
टेक्निकल डिटेल
पीएचपी संस्करण: | 4+ |
---|
❮ पीएचपी आउटपुट नियंत्रण कार्य