Site icon Hip-Hop Website Design and Development

How to Save value from two inputs as array?

I don’t know how to make two inputs as array and save them..

    /* Add Settings Field  */
add_settings_field(
    'plugin-test',
    __('Style Seelct', 'plugin_name'),
    'mypluginname_multi_option_cb',
    'pluginanme',
    'pluginame-settings-section-1',
    array(
        'name'      => 'test',
        'id'        => 'plugin-test',
        'class'     => 'plugin-test',
        'options'   => $plugin_get_opts,
    )
);

and here is the callback

function mypluginname_multi_option_cb($args) {  
global $plugin_get_opts;
?>
<input type="text" name="plugin_get_opts[name]" value="<?php echo plugin_get_opts[name]; ?>" />
<select id="mypluginname_admin_widget" name="plugin_get_opts[name]">
 <option <?php selected( in_array( 'ONE', $args ), 1 ); ?> value="ONE">One</option>
 <option <?php selected( in_array( 'TWO', $args ), 1 ); ?> value="TWO">Two</option>
</select>
<?php   
}

how is the solution of this code? thanks