Serializable::serialize

(PHP 5 >= 5.1.0, PHP 7)
String 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.

Returns:

Returns the string representation of the object or NULL

Exception:

Throws Exception when returning other types than strings and NULL.

See also:

__sleep() -

doc_php
2016-02-24 15:53:34
Comments
Leave a Comment

Please login to continue.