0
我有一個如下所示的數組,我需要檢查多維關聯數組中的重複項。我不認爲我真的需要說更多,我已經嘗試過array_unique
,並且當它們明顯不是時,它恰好認爲事情是重複的。檢查多重關聯數組中的重複項
我正在尋找可以改變:
array(3) {
[1]=>
array(2) {
["itself"]=>
string(31) "New York"
["status"]=>
string(18) "great"
}
[2]=>
array(2) {
["itself"]=>
string(36) "New York"
["status"]=>
string(22) "great"
}
[3]=>
array(2) {
["itself"]=>
string(29) "New York"
["status"]=>
string(18) "great"
}
}
在此:
array(1) {
[1]=>
array(2) {
["itself"]=>
string(31) "New York"
["status"]=>
string(18) "great"
}
}
字符串長度是一個錯字,我改變了原來的值。這工作表示感謝! – ThomasReggi 2012-01-12 22:34:03