title: How to free memory in PHP?
body: <pre><code>public function foo($file1, $file2){
    $obj = new Obj();
  
    $data = array();
    $data[] = $obj-&gt;importAFile($file1);
    $data[] = $obj-&gt;importAFile($file2);
  
    return $data;
  }
  </code></pre>
  
  <p>Does the memory allocated for $obj get freed after the return?</p>
  
  <p>If not how can I free it?</p>