配列の内部を調べて、値が一致するキーを持つキーを引き出す方法はありますか?このような質問がありましたが、決定的なものは何も見つかりませんでした。
だから私の配列がこのように見えるなら
Array
(
[0] => Array
(
[title] => Title 1
[type] =>
[message] =>
)
[1] => Array
(
[title] => Title 2
[type] =>
[message] =>
)
[2] => Array
(
[title] => Title 3
[type] =>
[message] =>
)
[3] => Array
(
[title] => Title 2
[type] => Limited
[message] => 39
)
[4] => Array
(
[title] => Title 4
[type] => Offline
[message] => 41
)
[5] => Array
(
[title] => Title 5
[type] =>
[message] =>
)
そして私はこれを手に入れたい
Array
(
[1] => Array
(
[title] => Title 2
[type] =>
[message] =>
)
[3] => Array
(
[title] => Title 2
[type] => Limited
[message] => 39
)
)