第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

php把二維數(shù)組轉(zhuǎn)換成為三維數(shù)組

php把二維數(shù)組轉(zhuǎn)換成為三維數(shù)組

PHP
鋒君 2016-11-10 22:34:16
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月公司被福建省綠化委員會(huì)、福建省人事廳、福建省林業(yè)廳授予“全省綠化先進(jìn)集體”'?(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月“丹霞園”小區(qū)申報(bào)漳州市“城市物業(yè)管理優(yōu)秀住宅小區(qū)”?'?(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月“悅?cè)A園”小區(qū)被評為“福建省2002年度物業(yè)管理示范項(xiàng)目'?(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月“文華園”小區(qū)被漳州市規(guī)劃主管部門確定為“安置房示范小區(qū)”??'?(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)這個(gè)是我從數(shù)據(jù)檢錯(cuò)出來的二維數(shù)組,想把他變成下面的三維數(shù)組。因?yàn)槲翼撁嬲故镜那闆r是下面這樣的。所以我需要把數(shù)組變成三維數(shù)據(jù)。求助大神。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" }也就是所時(shí)間戳一樣的都放到同一個(gè)數(shù)組下。求助了。
查看完整描述

2 回答

?
鋒君

TA貢獻(xiàn)31條經(jīng)驗(yàn) 獲得超8個(gè)贊

我已經(jīng)弄出來了,謝謝。

查看完整回答
1 反對 回復(fù) 2016-11-11
?
白衣若兮

TA貢獻(xiàn)1條經(jīng)驗(yàn) 獲得超1個(gè)贊

你用foreach把數(shù)組循環(huán)加一層,然后在循環(huán)里面判斷時(shí)間戳。

查看完整回答
1 反對 回復(fù) 2016-11-11
  • 2 回答
  • 0 關(guān)注
  • 6148 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號