Swoole provides a fast and high performance serialization module.
Serialize the data.
-
$data
the data to serialize -
$is_fast
if enable fast mode
If the process of serialization succeeds, it returns the binary string as the result of serialization. Otherwise, it returns false.
Unserialize the data.
$data
the data to unserialize
If the process of unserialization succeeds, it returns the unserialized data. Otherwise, it returns false.