Method | Description | |
---|---|---|
fix ( string $brokenSerializedData ) : string | Unserializes partially-corrupted arrays that occur sometimes. Addresses specifically the unserialize(): Error at offset xxx of yyy bytes error. | |
is ( mixed $data ) : boolean | Check value to find if it was serialized. | |
maybe ( mixed $data ) : mixed | Serialize data, if needed. | |
maybeUn ( string $data ) : mixed | Unserialize value only if it is serialized. |
Method | Description | |
---|---|---|
_checkBasic ( string $data, integer $length ) : boolean | Check some basic requirements of all serialized strings |