Last active
September 18, 2017 14:09
-
-
Save phannam1412/706f8dc19b9ec05f3b7b89a1fb55fb05 to your computer and use it in GitHub Desktop.
test output buffering
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ob_end_flush(); | |
ob_start(); | |
for($a=0;$a<5;$a++) { | |
print $a . PHP_EOL; | |
flush(); | |
ob_flush(); | |
sleep(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment