35 Answers · Fake a real object: class convert { public $varible; public function __construct($array) { $this = $array; } public static function toObject($array) ... ... <看更多>
Fast PHP Object to Array conversion. A couple of months ago, I found a forgotten feature of PHP itself. Apparently, it is possible to cast objects to arrays ... ... <看更多>