options creation for plugins

There are some functions associated with manipulating the variables found in the wp_options table.

add_option(): Create a new value in the table. Example add_option('var_name', 'value') will store option_name="var_name" and option_value="value". add_option() is used only when saving a value for the first time. Has an autoload parameter.

get_option(): Retrieve that value. Example: get_option('var_name') will return the string value.

update_option(). Will update the value of an option. Can also be used instead of add_option(), but it lacks the autoload parameter.

As for serializing data, WordPress will do it automatically if you use the above options with an array.

tech