title: Does PHP have a construct similar to .NET's DataSet?
body: <p>How can I implement a <code>DataSet</code> in PHP like .NET?</p>
  
  <p>I want this class to read data from database only once, then I should be able to use the data without connecting again to MySQL to run queries.</p>
  
  <pre><code>select * from user
  </code></pre>
  
  <p>When I run this query on the <code>DataSet</code> the data is fetched from memory.</p>
  
  <p>How can I implement this mechanism in PHP?</p>