If you are going to save a single value then:
$set = variable_set(‘name’,’value’);
If you are going to save an array then:
$array = array(‘value1’,’value2’);
$seralizedvalue = serialize($array)
$set = variable_set(‘name’,$seralizedvalue);
No comments:
Post a Comment