1
我有一個對象值從對象值到一個數組
foreach($this->promo_cart->contents() as $produks){
foreach($this->login_sess->contents() as $val):
$idex = array_unique(explode('_', $produks['prod_name']));
if($val['id']==$idex[2]) {
echo $val[id]; //result is 314314315
}
endforeach;
}
如何使從結果數組,像
array
(
[0] => 314
[1] => 314
[2] => 315
)
嘿感謝.. +1 – ranggadablues 2013-04-04 06:46:56
不客氣。 – Mischa 2013-04-04 06:47:32