[Solved] How to Get title by id in 2D array?


This is the solution I ended up using:

echo $arr[array_search(7, array_column($arr, 'id'))]['title'];

2

solved How to Get title by id in 2D array?