PEAR_Config::set()

PEAR_Config::set() -- Set config value in specific layer

概要

require_once 'PEAR/config.php';

bool PEAR_Config::set (string $key, string $value [, string $layer = 'user'])

説明

Set a config value in a specific layer (defaults to 'user'). Enforces the types defined in the configuration_info array. An integer config variable will be cast to int, and a set config variable will be validated against its legal values.

パラメータ

string $key

config key

string $value

config value

string $layer

config layer

返り値

bool - 成功時には TRUE 、 失敗時には FALSE を返します。

注意

この関数は、スタティックにコールする ことはできません。