Serializable.Serialize


public function Serialize

Prototype:

public function Serialize(filename="-",encoding="UTF-8")

Parameters

filename
the name of the XML file to save to
encoding
the encoding used for the XML file

Description:

This function serializes an Serializable derived object. When serializing an object, all the data contained will be saved into an XML file. Then, you can use the Unserialize method to restore that data.

Return value:

This function returns null. If the filename parameter is an empty string, returns a string containing the serialization.