<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_14745"> <div class="blockcode"> <div id="code_B4d"><ol><li><?<li>//boolean session_encode()<li>session_register ( 'bgcolor' );<li>session_register ( 'fontcolor' );<li><li>$id = session_id ( $usr_id );<li><li>$bgcolor = "white";<li>$fontcolor = "blue";<li><li>$usr_data = session_encode ();<li><li>print $usr_data;<li>?></li></ol></div> <em onclick="copycode($('code_B4d'));">复制代码</em> </div> <div class="blockcode"> <div id="code_qRA"><ol> <li><?<li>session_start();<li>$_SESSION = array(); <li>session_decode( "products|a:2:{i:0;s:8:"Hal 2000";i:1;s:6:"Tardis";}" );<li>foreach ( $_SESSION['products'] as $p ) {<li> print "$p<br/>n";</li> <li>}</li> <li>?></li> </ol></div> <em onclick="copycode($('code_qRA'));">复制代码</em> </div> </td></tr></table> <div id="comment_14745" class="cm"> </div> <div id="post_rate_div_14745"></div> <br><br>