<?php class Pony { public $tail; } $fluttershy = new Pony(); $fluttershy->tail = new Pony(); $fluttershy->tail->tail = new Pony(); echo json_encode($fluttershy);
You have javascript disabled. You will not be able to edit any code.