GoLang Serializable::serialize

request it (215)
GoLang replacement for PHP's Serializable::serialize [edit | history]

Do you know a GoLang replacement for PHP's Serializable::serialize? Write it!

PHP Serializable::serialize

PHP original manual for Serializable::serialize [ show | php.net ]


(PHP 5 >= 5.1.0, PHP 7)

Serializable::serializeString representation of object


abstract public string Serializable::serialize ( void )

Should return the string representation of the object.


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


This function has no parameters.

Return Values

Returns the string representation of the object or NULL


Throws Exception when returning other types than strings and NULL.

See Also