Sometimes PHP can be such an old fart. Ever wanted to search for $haystack in an $array which is an array in another array without writing more than one line of code?
One liner for a simple $array – classic:
$bool = in_array($anything, $array);
One liner for multidimensional array for PHP >= 5.5.0
$array = array_search($anything, array_column($array, 'column_key'));
One liner for multidimensional array for PHP < 5.5.0: https://github.com/ramsey/array_column
You’ll have to use Composer, good luck! :-)