<?php class test{ public $test = "toto"; private $esaegaegt = "togaegegto"; public function jsencode(){ return json_encode(serialize($this)); } } $a = new test(); echo serialize($a);
You have javascript disabled. You will not be able to edit any code.