我有一个数组:
Array
(
[0] => Array
(
[id] => 1
[email] => email1@account.com
[fullname] => name1
[phone] => phone
)
[1] => Array
(
[id] => 2
[email] => email2@account.com
[fullname] => name2
[phone] => phone
)
[2] => Array
(
[id] => 40
[email] => email@account.com
[fullname] => namex
[phone] => phone
)
)
如何使用 php 按 id 返回数组?
例如:id = 40;返回:
[id] => 40
[email] => email@account.com
[fullname] => namex
[phone] => phone
谢谢。