DEFAULT_COMPRESS
DEFAULT_COMPRESS
A replacement for serialize()/json_encode() that will automatically use the most efficient serialization available based on the input.
pack(mixed $data, array $opts = array()) : string
Pack a string.
| mixed | $data | The data to pack. |
| array | $opts | Additional options:
- compress: (mixed) If false, don't use compression. If true, uses
default compress length (DEFAULT). If 0, always compress.
All other integer values: compress only if data is
greater than this string length.
- drivers: (array) Only use these drivers to pack. By default, driver
to use is auto-determined.
- phpob: (boolean) If true, the data contains PHP serializable
objects (i.e. objects that have a PHP-specific serialized
representation). If false, the data does not contain any of
these objects. If not present, will auto-determine
existence of these objects.
|
The packed string.