<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> <li>session_register ( 'bgcolor' );</li> <li>session_register ( 'fontcolor' );</li> <li> <li>$id = session_id ( $usr_id );</li> <li> <li>$bgcolor = "white";</li> <li>$fontcolor = "blue";</li> <li> <li>$usr_data = session_encode ();</li> <li> <li>print $usr_data;</li> <li>?></li> </ol></div> <em onclick="copycode($('code_B4d'));">复制代码</em> </div> <div class="blockcode"> <div id="code_qRA"><ol> <li> <li>session_start();</li> <li>$_SESSION = array(); </li> <li>session_decode( "products|a:2:{i:0;s:8:\"Hal 2000\";i:1;s:6:\"Tardis\";}" );</li> <li>foreach ( $_SESSION['products'] as $p ) {</li> <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>