CakeFest 2024: The Official CakePHP Conference

L'interface JsonSerializable

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

Introduction

Les objets implémentant l'interface JsonSerializable peuvent personnaliser leur représentation JSON lors de l'encodage avec la fonction json_encode().

Sommaire de l'Interface

interface JsonSerializable {
/* Méthodes */
public jsonSerialize(): mixed
}

Sommaire

add a note

User Contributed Notes

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