Skip to content

Instantly share code, notes, and snippets.

@phannam1412
Last active September 18, 2017 14:09
Show Gist options
  • Save phannam1412/706f8dc19b9ec05f3b7b89a1fb55fb05 to your computer and use it in GitHub Desktop.
Save phannam1412/706f8dc19b9ec05f3b7b89a1fb55fb05 to your computer and use it in GitHub Desktop.
test output buffering
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