serialize/unserialize对数组进行序列化,但是这组函数序列化时会产生一些无用信息,如属性字符串长度,造成存储空间的无谓浪费,这时json_encode/json_decode是不错的选择