src/Helpers/Arrays.php
private static function searchMdObject($multi, array $target): array
    {
        return array_map(
            function($element) use ($target) {
                $exist = true;
                foreach ($target as $skey => $svalue) {
                    $exist = $exist && isset($element->$skey) && ($element->$skey === $svalue);
                }
                return $exist ? $element : null;
            },
            (array) $multi
        );
    }
private static function searchMdObject($multi, array $target): array
    {
        return array_map(
            function($element) use ($target) {
                $exist = true;
                foreach ($target as $skey => $svalue) {
                    $exist = $exist && isset($element->$skey) && ($element->$skey === $svalue);
                }
                return $exist ? $element : null;
            },
            (array) $multi
        );
    }
private static function searchMdObject ( $ multi , array $ target ) : array { return array_map ( function ( $ element ) use ( $ target ) { $ exist = true ; foreach ( $ target as $ skey => $ svalue ) { $ exist = $ exist && isset ( $ element -> $ skey ) && ( $ element -> $ skey === $ svalue ) ; } return $ exist ? $ element : null ; } , ( array ) $ multi ) ; }
Make search in MD object

@param   object $multi
@param   array $target
@return  array
Make search in MD object