<?php class A { public $b = 'some'; public function __toString() { return array($this->b); } } $a = new A(); $array = (array)(string)$a; print_r($a);
You have javascript disabled. You will not be able to edit any code.