Serializable
PHP 手册

Serializable::serialize

(No version information available, might be only in CVS)

Serializable::serializeString representation of object

说明

abstract public string Serializable::serialize ( void )

Should return the string representation of the object.

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

参数

This function has no parameters.

返回值

Returns the string representation of the object or NULL

错误/异常

Throws Exception when returning other types then strings and NULL

参见


Serializable
PHP 手册