I've got stuck with the concept of 'Output Buffer' in PHP.
I was learning the concept of File Handling in PHP from the URL PHP 5 FIle Handling
There I come across the following code :
<!DOCTYPE html>
<html>
<body>
<?php
echo readfile("webdictionary.txt");
?>
</body>
</html>
The explanation of above code was given like this "The readfile() function reads a file and writes it to the output buffer."
I didn't understand where the 'Output Buffering' is used in above code.
Then I searched the PHP manual for the word Output Buffer but it said output buffer doesn't exist.
Then I searched stackoverflow, got one question but it also didn't clear me what exactly the thing 'Output Buffer' is and when to use it and why to use it? Also, is it same as clipboard?
What are the advantages and disadvantages(if any) of using 'Output Buffer'?
Please clear all of my doubts in simple and lucid language.
Note : Please don't mark my question as duplicate because in other questions that are present on stackoverflow Output Buffering is explained in hard to understand manner along with the complicated headers concept which I didn't understand at all. I want to know Output Buffer and not Output Buffering. So, please try to answer my doubts.
Thank You.