k2hdkcpx_set_value
Sets a key/value pair
Description
/**
* @param resource $handle_res
*/
function k2hdkcpx_set_value(
$handle_res,
string $key,
string $val,
bool $clearSubkeys = false,
array $subkeys = null,
string $password = null,
int $expirationDuration = 0): bool {}
Sets a key/value pair.
Parameters
- handle_res
Specify the chmpx handle thatk2hdkcpx_open
returns. - key
Specify the key. - val
Specify the value. - clear_subkeys
Specifytrue
when clearing the subkeys. - subkeys
Specify the subkeys. - password
Specify the passphrase for encrypting the value. - expiration_duration
Specify the expiration duration in seconds.
Return Values
Returns true
on success or false
on failure.
See Also
- K2hdkc::setValue - Sets a pair of the key/value