我是PHP和Drupal的新手,但我在我的模板上修復了這個簡單的(?)thingo。我想從這個數組中獲得標題,日期,文本和鏈接路徑?我無法從中解脫出來。我認爲它是因爲它在另一個數組中,因爲即時通訊在PHP中我不能從它那裏得到它?另外我想讓它成爲一個循環。如果更多的內容,我會把它作爲一個列表或東西。我會用這個foreach嗎?像foreach $內容一樣$內容等等?如何從數組中獲取內容
我得到這個輸出是:var_dump($contents);
array
'total' => string '1' (length=1)
'data' =>
array
0 =>
array
'cid' => string '13231' (length=3)
'title' => string 'TITLEBLABLABLA' (length=3)
'body_text' => string 'TEXTBLABLABAL' (length=709)
'created' => string '313131' (length=10)
'created' => string '2010-07-13 14:12:11' (length=19)
'path' => string 'http://goog.fi' (length=72)