What does file_get_contents do?
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.
ASK A QUESTION
More files PHP Questionsthe visitor fills out an entire page of text. It is saved then later pulled up and edited. What kind of file? How is it saved? How is it accessed?
How do I open a file to write content to?
how can we erase some data in a txt file after some bytes
Where is a text file i created kept?
Getting first five lines from a file