src/Rad/Utils/Filter.php
public static function matchFilter(array &$datas, array $get) {
        if (sizeof($get) > 0) {
            $datas = array_filter($datas, function($obj) use($get) {
                return array_intersect_assoc((array) $obj, $get) == $get;
            });
        }
    }
public static function matchFilter(array &$datas, array $get) {
        if (sizeof($get) > 0) {
            $datas = array_filter($datas, function($obj) use($get) {
                return array_intersect_assoc((array) $obj, $get) == $get;
            });
        }
    }
public static function matchFilter ( array & $ datas , array $ get ) { if ( sizeof ( $ get ) > 0 ) { $ datas = array_filter ( $ datas , function ( $ obj ) use ( $ get ) { return array_intersect_assoc ( ( array ) $ obj , $ get ) == $ get ; } ) ; } }
Return mathing objects with get filter
@param array $datas
@param array $get
Return mathing objects with get filter