Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 916 Bytes

set_option.rst

File metadata and controls

43 lines (28 loc) · 916 Bytes

set_option — Set an option to the options table.

:doc:`Option-related functions </Reference/packages/Function/Db/Option/index>`

Summary

.. php:function:: set_option($name, $value)

    Set an option to the options table.

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

    :type $name: string
    :param $name: The option name.
    :type $value: string
    :param $value: The option value.

Usage

Examples

See Also