parent root
PHP: JsonSerializable - Manual
PHP 7.2.23 Release Announcement

The JsonSerializable interface

(PHP 5 >= 5.4.0, PHP 7)

Introduction

Objects implementing JsonSerializable can customize their JSON representation when encoded with json_encode().

Interface synopsis

JsonSerializable {
/* Methods */
abstract public jsonSerialize ( void ) : mixed
}

Table of Contents

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.
To Top
parent root