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 writ
This should do what you want, but without more context I can't tell for sure.
Writing $text to a file:
$text = "Anything"; $var_str = var_export($text, true); $var = ""; file_put_contents('filename.php', $var);
Retrieving it again:
include 'filename.php'; echo $text;