私は配列を持っています:
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
ありがとう。