<?php class A { public $b = 'some'; public function __toString() { return $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.