title: How to find Object ID in PHP?
body: <p>I'm using PHP 5.2. I'd like to find a way to output a unique id for every object, so it's easy when looking over logs to see which objects are the same.</p>
  
  <p>In Ruby, I'd just say object.object_id to get Ruby's internal identifier for the object. There doesn't seem to be an obvious way to do this in PHP.</p>
  
  <p>Is there is a built-in way of doing this? If there isn't, can you offer any other suggestions?</p>