L'interface JsonSerializable

(PHP 5 >= 5.4.0, PHP 7)

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

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

Sommaire