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 function jsonSerialize (): mixed
}

Sommaire

Found A Problem?

Learn How To Improve This Page • Submit a Pull Request • Report a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /