我正在嘗試根據(jù)特定鍵獲取值。密鑰在循環(huán)中出現(xiàn),但密鑰的索引會(huì)有所不同。對(duì)于一種情況,它可以是 48,對(duì)于其他情況,它可以是 50。共享下面的數(shù)組- [info_buyRequest] => Array ( [uenc] => aHR0cDovL2xvY2FsaG9zdC9TdGlja2VyaXR3ZWIvY3VzdG9tLXN0aWNrZXJzL3RyYW5zZmVyLXN0aWNrZXJzLmh0bWw, [product] => 12 [selected_configurable_option] => [related_product] => [qty] => 1 [custom_quantity] => 500 [custom_price1] => 303 [options] => Array ( [47] => [48] => Black [49] => 8x10 cm [51] => [76] => 500 pcs [50] => Array ( [type] => image/png [title] => project_it_Side_Logo.png [quote_path] => custom_options/quote/S/t/056de63143470f3907e354cd38f2dd3a.png [order_path] => custom_options/order/S/t/056de63143470f3907e354cd38f2dd3a.png [fullpath] => /var/www/html/project/pub/media/custom_options/quote/S/t/056de63143470f3907e354cd38f2dd3a.png [size] => 57385 [width] => 1294 [height] => 353 [secret_key] => 056de63143470f3907e3 ) ) [skipbutton] => 0 )
如何在動(dòng)態(tài)循環(huán)中鍵可能不同的關(guān)聯(lián)數(shù)組中獲取quote_path值?
繁星點(diǎn)點(diǎn)滴滴
2022-07-22 10:07:55