3
我有一個數組,並希望得到像這樣的所有值[*] [place], 而不會有重複的結果。 輸出應該看起來像這樣:從多維數組中獲取結果,但沒有重複結果php
德蘭 北日德蘭 西蘭
Array
(
[0] => Array
(
[place] => Sønderjylland
[active] => Lagerarbejde
[num] => 123
)
[1] => Array
(
[place] => Nordjylland
[active] => Tømrer
[num] => 124
)
[2] => Array
(
[place] => Sønderjylland
[active] => Klejnsmed
[num] => 125
)
[3] => Array
(
[place] => Sjælland
[active] => Elektriker
[num] => 126
)
)
非常感謝mauch,它工作得很好,我怎樣才能刪除重複的結果? –
非常感謝:) –
調用的最後一個函數不應該是'array_column'? –