I was wondering how to save PHP variables to a txt file and then retrieve them again.
Example:
There is an input box, after submitted the stuff that was written in the input box will be saved to a text file. Later on the results need to be brought back as a variable. So lets say the variable is $text I need that to be saved to a text file and be able to retrieve it back again.
This should do what you want, but without more context I can't tell for sure.
Writing $text to a file:
Retrieving it again: