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