See the list of constants at the top of the file for the serializing
techniques that can be used.
public static serialize ( mixed $data, mixed $mode = [self::BASIC], mixed $params = null ) : string | ||
$data | mixed | The data to be serialized. |
$mode | mixed | The mode of serialization. Can be either a single mode or array of modes. If array, will be serialized in the order provided. |
$params | mixed | Any additional parameters the serialization method requires. |
Результат | string | The serialized data. |