PHP Arrayable Interface

Viewed 27506

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.

eg

interface Arrayable
{
    public function toArray();
}

Was I imagining it?

4 Answers
Related