title: PHP Arrayable Interface
body: <p>I'm sure I read a while back about a new feature of PHP that was either a new magic method or a new interface so that you could implement Arrayable methods.</p>
  
  <p>eg</p>
  
  <pre><code>interface Arrayable
  {
      public function toArray();
  }
  </code></pre>
  
  <p>Was I imagining it?</p>