如何參考價格在最後一個分支?如何獲得一個元素的值在PHP數組
我已經試過$改編[ '線'] [ '一號線'] [ '價格'],但我得到了一個錯誤。什麼是正確的參考方式?
array (size=100)
0 =>
array (size=34)
'id' => string '1' (length=1)
'invoicenr_full' => string 'dsf' (length=7)
'invoicenr' => string 'fsd' (length=7)
'reference' =>
array (size=3)
'line1' => string 'fsde' (length=20)
'line2' => string 'sfsdfd' (length=31)
'line3' => string 'dfsds' (length=45)
'lines' =>
array (size=1)
'line1' =>
array (size=7)
'amount' => string '1' (length=1)
'amount_desc' => string '' (length=0)
'description' => string 'sdfsdf'
'tax_rate' => string '21' (length=2)
'price' => string '150' (length=3)
'discount_pct' => int 0
'linetotal' => int 150