[PHP]=>how to use serialize function to change only one value in file?
-
$vars = array( 'a' => 'aaaaa', 'b' => 'bbbbb', 'd' => 'xxxxx', ); file_put_contents('txtfile.txt',serial… so what script i should use to change only one value in file???
-
Answer:
// put in file file_put_contents( 'file.txt', serialize( $vars ) ); //read from file $vars = unserialize( file_get_contents( 'file.txt' ) ); ;)
Hollo at Yahoo! Answers Visit the source
Related Q & A:
- How can I plot more than one value in the same date?Best solution by Mathematica
- how to use javascript variable value in jsp?Best solution by Stack Overflow
- How to call Javascript function in PHP?Best solution by Stack Overflow
- How to use external PHP file in СakePHP 2?Best solution by Stack Overflow
- How to call a function asynchronously in PHP?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.