K2hash::getAttrInfos K2hash Class K2hash::getAttrValue

K2hash::getAttrs

Gets attributes of the key

Description

public arrayfalseK2hash::getAttrs ( string $key )

Gets attributes of the key.

Parameters

Return Values

Returns attributes of the key, otherwise false.

Examples

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

var_dump($k2hash->getAttrs("test"));
$k2hash->close();
?>

The above example will output:

array(1) {
  [0]=>
  string(8) "testattr"
}

See Also

K2hash::getAttrInfos K2hash Class K2hash::getAttrValue