K2hash::getTransactionThreadPool K2hash Class K2hash::loadArchive

K2hash::getValue

Gets the value associated with the key

Description

public stringfalseK2hash::getValue ( string $key [, string $subkey [, bool $attrcheck [, string $pass ]]] )

Gets the value associated with the key. Gets the keys linked with the key if the key is passed.

Parameters

Return Values

Returns the value of the key or the subkey, otherwise false.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
$k2hash->setValue("key1", "value1");
var_dump($k2hash->getValue("key1"));
$k2hash->close();
?>

The above example will output:

string(6) "value1"

See Also

K2hash::getTransactionThreadPool K2hash Class K2hash::loadArchive