可能重複:
How to search by key=>value in a multidimensional array in PHP
PHP search for Key in multidimensional array腓得到一個數組的基於字符串中的關鍵
我怎麼能在一個數組值搜索和拿到鑰匙?
實施例: 搜索ID 1 = 0鍵 或 搜索名稱弗蘭克=鍵1
Array
(
[0] => Array
(
[id] => 1
[name] => Bob
[url] => http://www.bob.com.br
)
[1] => Array
(
[id] => 2
[name] => Frank
[url] => http://www.frank.com.br
)
)
THKS。 阿德里亞諾
There are [很多例子](http://stackoverflow.com/search?q=%5Bphp%5D+search+multidimensional+array)從 –
tks邁克爾..(PHP搜索Key在多維數組中)後解決了我的問題... – adrianogf