array (size=5) 4 => array (size=17) 'id' => string '4' (length=1) 'catid' => string '30' (length=2) 'typeid' => string '0' (length=1) 'title' => string '2002年3月公司被福建省绿化委员会、福建省人事厅、福建省林业厅授予“全省绿化先进集体”' (length=122) 'style' => string '' (length=0) 'thumb' => string '' (length=0) 'keywords' => string '' (length=0) 'description' => string '' (length=0) 'posids' => string '0' (length=1) 'url' => string 'http://www.management.local/news-30-4.html' (length=42) 'listorder' => string '0' (length=1) 'status' => string '99' (length=2) 'sysadd' => string '1' (length=1) 'islink' => string '0' (length=1) 'username' => string 'admin' (length=5) 'inputtime' => string '1478788320' (length=10) 'updatetime' => string '1478701928' (length=10) 2 => array (size=17) 'id' => string '2' (length=1) 'catid' => string '30' (length=2) 'typeid' => string '0' (length=1) 'title' => string '2003年5月“丹霞园”小区申报漳州市“城市物业管理优秀住宅小区” ' (length=90) 'style' => string '' (length=0) 'thumb' => string '' (length=0) 'keywords' => string '' (length=0) 'description' => string '' (length=0) 'posids' => string '0' (length=1) 'url' => string 'http://www.management.local/news-30-2.html' (length=42) 'listorder' => string '0' (length=1) 'status' => string '99' (length=2) 'sysadd' => string '1' (length=1) 'islink' => string '0' (length=1) 'username' => string 'admin' (length=5) 'inputtime' => string '1478701851' (length=10) 'updatetime' => string '1478701853' (length=10) 1 => array (size=17) 'id' => string '1' (length=1) 'catid' => string '30' (length=2) 'typeid' => string '0' (length=1) 'title' => string '2006年12月公司荣获"漳州市第九届(2003-2005年度)文明单位"称号 ' (length=80) 'style' => string '' (length=0) 'thumb' => string '' (length=0) 'keywords' => string '' (length=0) 'description' => string '' (length=0) 'posids' => string '0' (length=1) 'url' => string 'http://www.management.local/news-30-1.html' (length=42) 'listorder' => string '0' (length=1) 'status' => string '99' (length=2) 'sysadd' => string '1' (length=1) 'islink' => string '0' (length=1) 'username' => string 'admin' (length=5) 'inputtime' => string '1478701487' (length=10) 'updatetime' => string '1478701547' (length=10) 5 => array (size=17) 'id' => string '5' (length=1) 'catid' => string '30' (length=2) 'typeid' => string '0' (length=1) 'title' => string '2002年12月“悦华园”小区被评为“福建省2002年度物业管理示范项目' (length=88) 'style' => string '' (length=0) 'thumb' => string '' (length=0) 'keywords' => string '' (length=0) 'description' => string '' (length=0) 'posids' => string '0' (length=1) 'url' => string 'http://www.management.local/news-30-5.html' (length=42) 'listorder' => string '0' (length=1) 'status' => string '99' (length=2) 'sysadd' => string '1' (length=1) 'islink' => string '0' (length=1) 'username' => string 'admin' (length=5) 'inputtime' => string '1478615520' (length=10) 'updatetime' => string '1478701971' (length=10) 3 => array (size=17) 'id' => string '3' (length=1) 'catid' => string '30' (length=2) 'typeid' => string '0' (length=1) 'title' => string '2003年4月“文华园”小区被漳州市规划主管部门确定为“安置房示范小区” ' (length=100) 'style' => string '' (length=0) 'thumb' => string '' (length=0) 'keywords' => string '' (length=0) 'description' => string '' (length=0) 'posids' => string '0' (length=1) 'url' => string 'http://www.management.local/news-30-3.html' (length=42) 'listorder' => string '0' (length=1) 'status' => string '99' (length=2) 'sysadd' => string '1' (length=1) 'islink' => string '0' (length=1) 'username' => string 'admin' (length=5) 'inputtime' => string '1478529060' (length=10) 'updatetime' => string '1478701881' (length=10)
這个是我从数据检错出来的二维数组,想把他变成下面的三维数组。因为我页面展示的情况是下面這样的。
所以我需要把数组变成三维数据。求助大神。
array (size=5) { 0=> 0=> 'id'=>'1', 'inputtime'=>"1478788320" 1=> 'id'=>'1', 'inputtime'=>"1478788320" 2=> 'id'=>'1', 'inputtime'=>"1478788320" 1=> 0=> 'id'=>'1', 'inputtime'=>"1478722220" 1=> 'id'=>'1', 'inputtime'=>"1478722220" 2=> 'id'=>'1', 'inputtime'=>"1478722220" 2=> 0=> 'id'=>'1', 'inputtime'=>"1478783330" }
也就是所时间戳一样的都放到同一个数组下。求助了。
锋君
白衣若兮