1
我使用的是引導選項卡,我需要幫助,使1個陣列的內容分割成3塊這樣的:拆分數組3件,並把它放在分離的div
實例陣列:
$arr = array(
0 => array(
'title' => 'sometitle'
),
1 => array(
'title' => 'sometitle'
),
2 => array(
'title' => 'sometitle'
),
3 => array(
'title' => 'sometitle'
),
4 => array(
'title' => 'sometitle'
),
5 => array(
'title' => 'sometitle'
),
);
我希望它作出這樣:
<div>
sometitle
sometitle
</div>
<div>
sometitle
sometitle
</div>
<div>
sometitle
sometitle
</div>
非常感謝您!有效! – 2014-10-02 14:27:39