我有一個對象$ invoiceitems - 它是數組數組的一個(smarty)對象。 我無法解決如何訪問其中的值。陣列對象中的訪問元素
例如,我將如何訪問第二個數組中的'relid'元素?
//print_r($invoiceitems);
Smarty_Variable對象([值] =>數組([0] =>數組([ID] => 40442 [型] =>託管[RELID] => 2913 [描述] =>測試 [rawamount] => 24.00 [amount] =>€24.00 EUR [taxed] => 1)[1] => Array([id] => 40443 [type] => Hosting [relid] => 2913 [描述] =>測試[rawamount] => 24.00 [量] =>€24.00 EUR [徵稅] => 1))[非緩存] => [範圍] => 0)