public static function merge(...$options) {
            $o = [];

            foreach ($options as $opt) {
                if ($opt instanceof Options) {
                    $o = array_merge($o, $opt->toArray());
                } elseif (is_array($opt)) {
                    $o = array_merge($o, $opt);
                }
            }

            return new self(Util::trimNulls($o));
        }
public static function merge(...$options) {
            $o = [];

            foreach ($options as $opt) {
                if ($opt instanceof Options) {
                    $o = array_merge($o, $opt->toArray());
                } elseif (is_array($opt)) {
                    $o = array_merge($o, $opt);
                }
            }

            return new self(Util::trimNulls($o));
        }
public static function merge ( ... $ options ) { $ o = [ ] ; foreach ( $ options as $ opt ) { if ( $ opt instanceof Options ) { $ o = array_merge ( $ o , $ opt -> toArray ( ) ) ; } elseif ( is_array ( $ opt ) ) { $ o = array_merge ( $ o , $ opt ) ; } } return new self ( Util :: trimNulls ( $ o ) ) ; }
Create an Options object from a combination of configuration arrays and other option objects

@author Art <a.molcanovas@gmail.com>

@param array ...$options The items to merge

@return Options
Create an Options object from a combination of configuration arrays and other option objects