file_get_contents reads an entire file into a string.
For instance if you have a text file in the same folder and you want to get all the contents, you could use this function do read it into a string, which you can then process as required.
You can also use it to fetch the contents of a webpage for instance as a string and again then process as required.