如何使用php序列化()和取消序列化()
serialize()
unserialize()
编辑:
<?php $a= array( '1' => 'elem 1', '2'=> 'elem 2', '3'=>' elem 3');print_r($a);echo ("<br></br>");$b=serialize($a);print_r($b);?>
Array ( [1] => elem 1 [2] => elem 2 [3] => elem 3 ) a:3:{i:1;s:6:"elem 1";i:2;s:6:"elem 2";i:3;s:7:" elem 3";}
陪伴而非守候
有只小跳蛙