Options::set_group( 'foo', array( 'bar' => 'baz', 'qux' => 'quux' ) ); results in 2 options: foo__bar == baz and foo__qux == quux
public static function set_group($prefix, $values) { if (substr($prefix, -2) != '__') { $prefix .= '__'; } // loop through each option, setting it foreach ($values as $k => $v) { Options::set($prefix . $k, $v); } }