判断某个值是否在多维关联数组中 返回该值的所在的关联数组

public function deep_in_array($value, $array) {
    foreach($array as $item) {
        if(!is_array($item)) {
            if ($item == $value) {
                return $item;
            } else {
                continue;
            }
        }

        if(in_array($value, $item)) {
            return $item;
        } else if($this->deep_in_array($value, $item)) {
            return $item;
        }
    }
    return false;
}