PHP7中文手册2018 带注释 最新chm版
<?php
$a = array("a"=>1,"b"=>2,"c"=>3);
$a = (object)$a; //PHP的类型转换
echo $a->c;
?>
<br/>
<?php
$array=array('aa','bb','cc','dd');
$a=serialize($array);
echo $a;
echo "<br/>";
$s=unserialize($a);
foreach($s as $value)
{
echo $value.',';
}
?>
转载请注明:谷谷点程序 » PHP 序列化(serialize)格式详解