<?php class A {} $a = new A(); $b = new A(); $a->m = $b; $b->m = $a; var_dump(json_encode($a));
You have javascript disabled. You will not be able to edit any code.