I got a simple php script that is storing the content of POST in to a text file. data.txt looks like this:
Something - Line1
Something - Line2
Something - Line3
Something - Line4
I'm trying to figure out the best way to set each line as a variable e.g.
$line1 = "Something - Line1";
$line2 = "Something - Line2";
$line3 = "Something - Line3";
$line4 = "Something - Line4;"
so I can use it for further processing. Please note that the numbers of line can change. Any ideas? :-)
Thanks!