store data into a text file using php?
<p>i am trying to store data in a text file, something like an array into a text file using php instead of storing into mysql database.</p>

<p>for example here are the data to be stored in a text file</p>

<pre><code>name=&gt;john
age=&gt;25
location=&gt;australia
</code></pre>

<p>then after saving it to a text file , how can I get the contents out and parse it with php , for like php can find the name , age and location and echo it out(something like parsing an array)</p>

<p>I need it for storing the data into a text file so it can be easily access from other domains without requiring to be on the same domain , connect to database , get the data from database. I am looking for a speedy solution. :)</p>

<p>I'm not sure which direction should I look into for this kind of functionality , hoping someone can point me out.</p>
