src/Helpers/Arrays.php
public static function searchMd($multi, $target)
    {
        if (empty($target) || empty($multi)) {
            return false;
        }

        $output = \is_object($multi)
            ? self::searchMdObject($multi, $target)
            : self::searchMdArray($multi, $target);

        $output = array_values(array_filter($output));

        // If output is not empty, false by default
        return !empty($output) ? $output : false;
    }
public static function searchMd($multi, $target)
    {
        if (empty($target) || empty($multi)) {
            return false;
        }

        $output = \is_object($multi)
            ? self::searchMdObject($multi, $target)
            : self::searchMdArray($multi, $target);

        $output = array_values(array_filter($output));

        // If output is not empty, false by default
        return !empty($output) ? $output : false;
    }
public static function searchMd ( $ multi , $ target ) { if ( empty ( $ target ) || empty ( $ multi ) ) { return false ; } $ output = \ is_object ( $ multi ) ? self :: searchMdObject ( $ multi , $ target ) : self :: searchMdArray ( $ multi , $ target ) ; $ output = array_values ( array_filter ( $ output ) ) ; // If output is not empty, false by default return ! empty ( $ output ) ? $ output : false ; }
Find nested array inside two-dimensional array

TODO: Not work with objects

@param   array|object $multi where need to make search
@param   array $target what we want to find
@return  bool|array
Find nested array inside two - dimensional array