<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_50300"> 数组转向 <br> <br> <br> <br> <br> <div class="blockcode"> <div id="code_ObY"><ol> <li>function rotate($a) {</li> <li> $b = array();</li> <li> foreach ($a as $val) {</li> <li> foreach ($val as $k => $v) {</li> <li> $b[$k][] = $v;</li> <li> }</li> <li> }</li> <li> return $b;</li> <li>}</li> </ol></div> <em onclick="copycode($('code_ObY'));">复制代码</em> </div> </td></tr></table> <div id="comment_50300" class="cm"> </div> <div id="post_rate_div_50300"></div> <br><br>