php函数serialize()与unserialize()

serialize()和unserialize()在php手册上的解释是:

serialize — Generates a storable representation of a value

serialize — 产生一个可存储的值的表示

unserialize — Creates a PHP value from a stored representation

unserialize — 从已存储的表示中创建 PHP 的值

 

 

实例

 

 

 

打印结果

 

 

posted @ 2017-03-19 17:32  ノGHJ  阅读(158)  评论(0编辑  收藏  举报