Saving values using variable_set through an array I have used variable_set to save one value. How can I save multiple values through an array using variable_set?
It's the same:

The variable_set function saves the variable to database serializing it. variable_get takes the variable from $conf where the variable is already unserialized. 

Example:

$var1 = array(
 'key1' =&gt; 'value1',
 'key2' =&gt; 'value2'
);
variable_set('var1', $var1);
print_r variable_get('var1');


Output

Array
(
    [key1] =&gt; value1
    [key2] =&gt; value2
)