<?php class TransactionId { private $id; public function __construct($id) { $this->id = $id; } public function __troString() { return $this->id; } } echo json_encode(array('id' => new TransactionId('asdfgbhbva')));
You have javascript disabled. You will not be able to edit any code.