<?php class Test { private $a = 12; protected $b = 'test'; public $c = false; } $obj = new Test(); echo serialize($obj), PHP_EOL; echo serialize((array) $obj), PHP_EOL;
You have javascript disabled. You will not be able to edit any code.