如果數組1中的電子郵件地址存在於數組2中(這裏是:[email protected]
),我想比較兩個數組。在這種情況下,它應該顯示電子郵件已經存在。比較兩個多維關聯數組s
$Array1 = Array
(
[0] => Array
(
[username] => uname1
[name] => fullname1
[email] => [email protected]
)
[1] => Array
(
[username] => uname2
[name] => fullname2
[email] => [email protected]
)
[2] => Array
(
[username] => uname3
[name] => fullname3
[email] => [email protected]@email.com
)
}
$Array2 = Array
(
[0] => Array
(
[username] => uname1
[name] => fullname1
[email] => [email protected]
)
}
任何這些解決方案都適合您? – 2010-09-23 03:31:24