PHP. How to store date in file for reading afterwards
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4906073/a-simple-program-to-crud-node-and-node-values-of-xml-file">A simple program to CRUD node and node values of xml file</a>  </p>
</blockquote>



<p>I have an xml file from which I get data. I also got multiple <code>&lt;date&gt;&lt;/date&gt;</code> tags in which I would like to store some date values: year, month, day, hour, minutes. </p>

<p>I enter the XML data manually, so my question is how do I write the required date values so when I do a <code>file_get_contents()</code> from PHP and then get each individual tag, PHP would understand the date and place it in a variable/object, instead of me processing the string and creating a Date variable?</p>
