For storing values in a .txt
file I use this code:
file_put_contents('data/vote_result.txt', implode(',', $results));
and for reading i use this:
$results = explode(',', file_get_contents('data/vote_result.txt'));
The content of vote_result.txt
looks like this: 0,1,2,3
How can I store a second line in the same .txt
file so that the content looks like this:
0,1,2,3
0,1,2,3
and how can I read that second line?