this is my php arrayArray 0 = Array item_id = 230 item_price = 204000 item_quantity = 1 1 = Array item_id = 230 item_price = 1706000 item_quantity = 2 2 = Array item_quantity = 2 item_id = 230 i
Sure! You can access the 'item_glass_name' key of the last array element in the following way:
$item_glass_name = $your_array[count($your_array)-1]['item_glass_name'];
This will give you the value of 'item_glass_name' in the last array element.
原文地址: https://www.cveoy.top/t/topic/f2ab 著作权归作者所有。请勿转载和采集!