ConFoo 2025

The JsonSerializable interface

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

Introduzione

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

Sommario dell'interfaccia

interface JsonSerializable {
/* Metodi */
public jsonSerialize(): mixed
}

Indice dei contenuti

add a note

User Contributed Notes

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