\PG\MSF\PackJsonPack

Class JsonPack

Summary

Methods
Properties
Constants
pack()
unPack()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

pack()

pack(mixed  $data) : string

JSON打包

Parameters

mixed $data

待打包数据

Returns

string

unPack()

unPack(string  $data) : mixed

JSON解包

Parameters

string $data

待解包数据

Throws

\Exception

Returns

mixed