0
確定可以說我有這個集合在我的電視數據庫MongoDB的PHP嵌套文檔
"season" : "1", "episodes" : {"code" : ["1x01", "1x02", "1x03"], "title" : ["Dont Look Back", "Genesis", "Third"]},
"season" : "2", "episodes" : {"code" : ["2x01", "2x02", "2x03"], "title" : ["D2ont Look Back", "G2enesis", "T2hird"]},
"season" : "3", "episodes" : {"code" : ["3x01", "3x02", "3x03"], "title" : ["D3ont Look Back", "G3enesis", "T3hird"]},
"season" : "4", "episodes" : {"code" : ["4x01", "4x02", "4x03"], "title" : ["D4ont Look Back", "G4enesis", "T4hird"]}
我如何讓這個唯一的,可以說,從第2季的劇集中顯示? 香港專業教育學院使用
echo $obj['episodes']['code'][0];
一直在努力,但只顯示最後一行
Im相當肯定我的嵌套都是錯誤的情節,但即時通訊新蒙戈和遇到問題我嘗試繪製了這一點
任何建議?
oo我明白了,謝謝! – daniel 2010-12-04 11:03:55