算了。我估计你要的也不是这堆乱七八糟的内容。$code="你那串代码"; /核空/乎似你少复制了个 19$str=base64_decode($code);//如果你确定没少复制的话,那就自己补上两个}}符号吧$data=unserialize($str.'}}');//否则请使用这个代码//$data=unserialize($str);print_r($data);打印结果就是:Array( [name] => 爱你网-sweet_coffee [templateid] => 123 [tplname] => 爱你陪闷网-sweet_coffee [directory] => ./templates/sweet_coffee [copyright] => LoveuCn.Com [version] => 7.0.0 [style] => Array ( [boardimg] => [styleimgdir] => templates/sweet_coffee/images [noticetext] => #996600 [interleavecolor] => #FFFFFF [specialbg] => #FFFFFF [specialborder] => #E4D6C9 [commonbg] => #FFFFFF [floatmaskbgcolor] => #E4D6C9 [commonborder] => #E4D6C9 [floatbgcolor] => #FFFFFF [inputbg] => #FFF [dropmenuborder] => #E4D6C9 [dropmenubgcolor] => #FFFFFF [inputborderdarkcolor] => #E4D6C9 [inputborder] => #E4D6C9 [menuhovertext] => #FFFFFF [menuhover] => #996600 [menutext] => #996600 [menubgcolor] => [menuborder] => #996600 [contentseparate] => #E4D6C9 [contentwidth] => [msgbigsize] => 16px [msgfontsize] => 14px [wrapbordercolor] => #996600 [wrapborder] => 0 [wrapbg] => #FFFFFF [wrapwidth] => 860px [highlightlink] => #996600 [link] => #996600 [lighttext] => #996600 [midtext] => #996600 [tabletext] => #996600 [smfont] => Verdana, Helvetica, Arial, sans-serif [smfontsize] => 0.83em [footertext] => #996600 [font] =>芦氏弯 Verdana, Helvetica, Arial, sans-serif [fontsize] => 12px [headertext] => #996600 [headerbordercolor] => #996600 [bgcolor] => #FFFFFF [headerborder] => 0px [sidebgcolor] => #FFF sidebg.gif repeat-y 100% 0 [headerbgcolor] => [imgdir] => [stypeid] => 1 [available] => ))
标签:PHP