本帖最后由 hongliangjava 于 2013-04-17 10:12:01 编辑

解决方案 »

  1.   

    http://www.w3school.com.cn/php/php_ref_array.asp
    来,挑一个吧
      

  2.   

    $arr=你的数组..
    $key=array (
      0 => 'pid',
      1 => 'fid',
      2 => 'tid',
      3 => 'first',
      4 => 'author',
      5 => 'authorid',
      6 => 'subject',
      7 => 'dateline',
      8 => 'message',
      9 => 'useip',
      10 => 'invisible',
      11 => 'anonymous',
      12 => 'usesig',
      13 => 'htmlon',
      14 => 'bbcodeoff',
      15 => 'smileyoff',
      16 => 'parseurloff',
      17 => 'attachment',
      18 => 'rate',
      19 => 'ratetimes',
      20 => 'status',
      21 => 'tags',
      22 => 'comment',
    );foreach(array_chunk($arr,24) as $v){
         array_splice($v,1,1);
         $ar[]=array_combine($key,$v);
    }
    print_r($ar);