How to run the variable of the file stream? 1.20.file a.txt, which is written in $ a2. I have a my. php file, which is written like this & lt ;? Php $ a = "OK"; file_get_content ("a.txt", "r +"); // This is the operation code. I will not // read the file, how can I run the variable of the file stream immediately?
1.20.file a.txt, which is written in $
2. I have my. php, which is written in this way.
$ A = "OK ";
File_get_content ("a.txt", "r + ");
// This is the operation code. I won't
// When the file is read, I will save it as text soon, but I want to replace $ a in the text with the value of $ a in php. OK
File_put_content ("B .txt", "w + ");
When the text is read into php, the content in it does not seem to respond to php. open $ a and run a circle in php to save it or $, is there a way to run the variables in the file stream in php?
That is, a.txt ----- with runtime a> read to php --------> share a.txt:
------ Solution --------------------
Text Replacement
Ob + eval
Ob + include
Ob + phar
------ Solution --------------------
Let's take a look at the string functions.
------ Solution --------------------
I guess you need to use the eval function.