public static function searchColumn(array $array, $column, $search)
    {
        $array = array_values($array); // align array keys
        $columns = array_column($array, $column);
        $key = array_search($search, $columns);
        return ($key !== false) ?  $array[$key] : false;
    }
public static function searchColumn(array $array, $column, $search)
    {
        $array = array_values($array); // align array keys
        $columns = array_column($array, $column);
        $key = array_search($search, $columns);
        return ($key !== false) ?  $array[$key] : false;
    }
public static function searchColumn ( array $ array , $ column , $ search ) { $ array = array_values ( $ array ) ; // align array keys $ columns = array_column ( $ array , $ column ) ; $ key = array_search ( $ search , $ columns ) ; return ( $ key !== false ) ? $ array [ $ key ] : false ; }
Search for a Column Value inside a Multidimension array and return the array with the found key.

Compare to searchColumns() this function return will return the first found result.

```php
$array = [
['name' => 'luya', 'userId' => 1],
['name' => 'nadar', 'userId' => 2],
];

$result = ArrayHelper::searchColumn($array, 'name', 'nadar');

// output:
// array ('name' => 'nadar', 'userId' => 2);
```

> This will not work with assoc keys

@param array $array The array with the multimensional array values.
@param string $column The column to lookup and compare with the $search string.
@param string $search The string to search inside the provided column.
@return array|boolean
Search for a Column Value inside a Multidimension array and return the array with the found key .