<?php class A { public function __toString () { return "abc"; } } $a = new A(); var_dump((array) $a);
You have javascript disabled. You will not be able to edit any code.