-2
我有一個來自聯接查詢時,我調試發現此輸出的數組。 這是我在控制器Cake php多維數組
$agetFeatureGigs = $this->Gigs->getFeatureGigs();
$this->set('agetFeatureGigs', $agetFeatureGigs);
$yourValue='7';
foreach($agetFeatureGigs as $key => $val) {
$agetFeatureGigs[$key]['Gigs']['manual'] = $yourValue;
}
輸出
array(
(int) 0 => array(
'usersjoin' => array(
'action' => 'YES'
),
'Gigs' => array(
'id' => '2',
'username' => 'nmodi',
'category' => 'Creativity & Designing',
'subcategory' => 'Logo Design',
'picture' => 'Banner_logo1.jpg',
'video' => '',
'title' => 'I will design 2 AWESOME logo design in 48 hours',
'delivery' => '24 Hrs',
'workinghrs' => '3',
'feature' => 'YES',
'action' => 'YES',
'del' => 'NO'
)
),
(int) 1 => array(
'usersjoin' => array(
'action' => 'YES'
),
'Gigs' => array(
'id' => '1',
'username' => 'ptailor',
'category' => 'Creativity & Designing',
'subcategory' => 'Logo Design',
'picture' => '128.jpg',
'video' => 'https://www.youtube.com/watch?v=KtCF5tyAr-o&feature=inp-gs-IOL-07-47',
'title' => 'I will proofread and edit your document I will proofread and edit your document',
'delivery' => '12 Hrs',
'workinghrs' => '2',
'feature' => 'YES',
'action' => 'YES',
'del' => 'NO'
)
)
)
代碼,但我需要添加一個字段評級手動值婁德爾內裏演出陣列。 請幫我解決這個問題。
什麼也沒有發生同樣的調試值 – ggutigod
你試過了哪種方法? – drmonkeyninja
來調試? <?php debug($ agetFeatureGigs);?> – ggutigod