K2hdkc::setValue K2hdkc Class K2hdkc::addSubkey

K2hdkc::getValue

Gets a value associated with the key

Description

    public function getValue(
        string $key,
        string $password = null): string|null {}

Gets a value associated with the key.

Parameters

Return Values

Returns the value of the key, otherwise null.

Examples

php -r '
k2hdkc = new K2hdkc("tests/slave.ini");
var_dump($k2hdkc->setValue("key1", "val1"));
var_dump($k2hdkc->getValue("key1"));
unset($k2hdkc);
'

The above example will output:

bool(true)
string(4) "val1"

See Also

K2hdkc::setValue K2hdkc Class K2hdkc::addSubkey