String representation of object

# Serializable::serialize

(PHP 5 >= 5.1.0, PHP 7)

Serializable::serialize — String representation of object

### Descrierea

abstract public Serializable::serialize ( void ) : string

Should return the string representation of the object.

> Notă:

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

### Parametri

Această funcție nu are parametri.

### Valorile întoarse

Returns the string representation of the object or `NULL`

### Erori/Excepții

Throws Exception when returning other types than strings and `NULL`.

### A se vedea și

- __sleep()