set_option — Set an option to the options table.

Option-related functions

Summary

set_option($name, $value)

Set an option to the options table.

Note that objects and arrays must be serialized before being saved.

Parameters:
  • $name (string) – The option name.
  • $value (string) – The option value.

Usage

Examples

See Also