src/AnalyticsTrait.php
public function arrayMultiSearch($needle, $haystack) {
        foreach ($haystack as $key => $data) {
            if (in_array($needle, $data)) {
                return $key;
            }
        }
        return false;
    }
public function arrayMultiSearch($needle, $haystack) {
        foreach ($haystack as $key => $data) {
            if (in_array($needle, $data)) {
                return $key;
            }
        }
        return false;
    }
public function arrayMultiSearch ( $ needle , $ haystack ) { foreach ( $ haystack as $ key => $ data ) { if ( in_array ( $ needle , $ data ) ) { return $ key ; } } return false ; }
Find key by sub value

@param  string $needle
@param  array $haystack
@return string
Find key by sub value