Serializable::serialize

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

Serializable::serializeString representation of object

Опис

public Serializable::serialize(): ?string

Should return the string representation of the object.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns the string representation of the object or null

Помилки/виключення

Throws Exception when returning other types than strings and null.

Прогляньте також