title: PHP. Is it possible to use array_column with an array of objects
body: <p>Is it possible to pass in <code>array_column</code> an array of objects?<br/>
  I have implemented ArrayAccess interface, but it has no effect.<br/>
  Should I implement another one?</p>
  
  <pre><code>class Foo implements ArrayAccess {
  
      public $Id, $Title;
  
      public function offsetExists($offset)
      {
          return isset($this-&gt;{$offset});
      }    
  
      public function offsetGet($offset)
      {
          return $this-&gt;{$offset};
      }
  
      public function offsetSet($offset, $value)
      {
          $this-&gt;{$offset} = $value;
      }
  
      public function offsetUnset($offset)
      {
          unset($this-&gt;{$offset});
      }
  }
  
  $object = new \Foo();
  $object-&gt;Id = 1;
  $object-&gt;Title = 'Test';
  
  $records = array(
      $object, 
      array(
          'Id' =&gt; 2,
          'Title' =&gt; 'John'
      )
  );
  
  var_dump(array_column($records, 'Title')); // array (size=1) 0 =&gt; string 'John' (length=4)
  </code></pre>