如何在 PHP 中删除 stdClass 对象?
控制器:
$detail['shipping'] = $this->Mymodel->Tcs_get_data('shipment_master');
这是我的 ARRAY
看法:
使用 print_r($shipping);
Array ( [0] => stdClass Object ( [sc_id] => 1 [sc_amount_s] => 0 [sc_amount_e] => 4999 [sc_charges] => 150 [sc_status] => 0 [sc_delete] => 0 ) [1] => stdClass Object ( [sc_id] => 2 [sc_amount_s] => 5000 [sc_amount_e] => 9999 [sc_charges] => 100 [sc_status] => 0 [sc_delete] => 0 ) [2] => stdClass Object ( [sc_id] => 4 [sc_amount_s] => 10000 [sc_amount_e] => 99999 [sc_charges] => 0 [sc_status] => 0 [sc_delete] => 0 ) )
弑天下
慕标琳琳
收到一只叮咚