title: Can I use an instantiated Object as an Array Key?
body: <p>For example:</p>
  
  <pre><code>$product = new Product("cat");
  
  if(isset($sales[$product])){
       $sales[$product]++;
  }
  else{
       $sales[$product] = 1;
  }
  </code></pre>