PHP 8.1.0 Alpha 1 available for testing

The JsonSerializable interface

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

Introdução

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

Resumo da Interface

JsonSerializable {
/* Métodos */
abstract public jsonSerialize ( ) : mixed
}

Índice

add a note add a note

User Contributed Notes

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