clear_config()

clear_config()

clear_config() -- clears assigned config variables

Description

void clear_config ( [string var])

This clears all assigned config variables. If a variable name is supplied, only that variable is cleared.

Example 13-1. clear_config()

<?php
// clear all assigned config variables.
$smarty->clear_config();

// clear one variable
$smarty->clear_config('foobar');
?>

See also get_config_vars(), config variables, config files, {config_load}, config_load() and clear_assign()

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.