How can you force immediate output using "echo" in PHP scripts?
When using the "echo" function in PHP scripts, the output may not be immediately displayed in the browser due to buffering. To force immediate output, you can use the "flush" function after each "echo" statement. This will send the output to the browser without waiting for the script to finish executing.
<?php
// Output data immediately using echo and flush
echo "Output 1<br>";
flush();
echo "Output 2<br>";
flush();
?>