0

我需要找到关键 sub_section_html 的价格。

示例:其中 [sub_section_html] => 腰部图像回显 [价格]

我使用 array_search 获取密钥,但如何获取与该条目对应的价格值?

stdClass Object ( [data_id] => 65 [name_short_en] => white [price] => 720 [sub_section] => 1 [sub_section_html] => bodyImage ) 
stdClass Object ( [data_id] => 88 [name_short_en] => brown [price] => 80 [sub_section] => 2 [sub_section_html] => waistbandImage ) 
stdClass Object ( [data_id] => 101 [name_short_en] => white [price] => 70 [sub_section] => 3 [sub_section_html] => collarImage ) 
stdClass Object ( [data_id] => 262 [name_short_en] => Lace/blue/white [price] => 330 [sub_section] => 8 [sub_section_html] => leftsleeveImage ) 
4

0 回答 0