title: memory handling in php vs java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1735492/is-there-garbage-collection-in-php">Is there garbage collection in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>In java there is a concept called <code>Garbage Collector</code>. In java an Object becomes Eligible for Garbage Collection when it's not reachable from any live threads or any static refrences in other words you can say that an object becomes eligible for garbage collection if its all references are null.</p>
  
  <p>What will happen in PHP? Will it lead to a memory overflow. Is this a disadvantage in <code>PHP</code> or is there ways to handle and what are the ways and techniques <code>PHP</code> provides to handle memory efficiently?</p>