PHP-Fusion Development

fusion_get_settings()

Fetch the settings from DB_SETTINGS.

Versions: 9

fusion_get_settings( [ string $key ] ) : mixed

Parameters

$key (string) (Optional) The key of one setting. Default value: null

Return Values

(array|string) Associative array of settings or one setting by key.

Examples

$settings = fusion_get_settings();
echo $settings['siteurl'];
// http://example.com/