Drupal's variable functions automatically serialize and unserialize variables so, variable_set automatically serialize variables, and variable_get automatically unserialize variables
Think out of the box
Drupal's variable functions automatically serialize and unserialize variables so, variable_set automatically serialize variables, and variable_get automatically unserialize variables