K2hash::getAttrs K2hash Class K2hash::getAttrVersionInfos

K2hash::getAttrValue

Gets an attribute value of the attribute key of the key

Description

public stringfalseK2hash::getAttrValue ( string $key , string $attrkey )

Gets an attribute value of the attribute key of the key.

Parameters

Return Values

Returns the value of the attribute of the key, otherwise false.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
$k2hash->setValue("test", "value");
$k2hash->addAttr("test", "testattr", "testattrvalue");

var_dump($k2hash->getAttrValue("test", "testattr"));
$k2hash->close();
?>

The above example will output:

string(13) "testattrvalue"

See Also

K2hash::getAttrs K2hash Class K2hash::getAttrVersionInfos