__toString() __toString() : string __toString function. Implicit conversion to string. Returns string
__construct() __construct(mixed $data, integer $mode) Constructor Parameters mixed $data element you'd like to encode integer $mode json_encode options constant