Serializable
Serializable::unserialize
Serializable
PHP Manual

# Serializable::serialize

(PHP 5 >= 5.1.0)

Serializable::serialize — String representation of object

### Descrição

abstract public string Serializable::serialize ( void )

Should return the string representation of the object.

> Nota: This method acts as the destructor of the object. The __destruct() method will not be called after this method.

### Parâmetros

Esta função não contém parâmetros.

### Valor Retornado

Returns the string representation of the object or `NULL`

### Erros

Throws Exception when returning other types then strings and `NULL`

### Veja Também

- __sleep()

Serializable
Serializable::unserialize
Serializable
PHP Manual