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