假設我有類似下面的數組:如何通過在PHP中的多維數組中提供另一個鍵值來返回鍵值?
Array
(
[0] => Array
(
[town_id] => 1
[town_name] => ABC
[town_province_id] => 7
)
[1] => Array
(
[town_id] => 2
[town_name] => DEF
[town_province_id] => 4
)
[2] => Array
(
[town_id] => 3
[town_name] => GHI
[town_province_id] => 2
)
)
我想在上述陣列和返回值「2」提供值「DEF」。
請幫幫我。