K2hash::enableTransaction K2hash Class K2hash::getAttrs

K2hash::getAttrInfos

Prints the attribute information

Description

 public bool K2hash::getAttrInfos ([ mixed $output ] )

Prints the attribute information.

Parameters

Return Values

Returns true on success or false on failure.

Examples

<?php
$k2hash = new K2hash();
$k2hash->openMem();
$fp = fopen("/tmp/k2hash_attr_information.log", 'w');
$k2hash->getAttrInfos($fp);
fclose($fp);
$k2hash->close();

$fp = fopen("/tmp/k2hash_attr_information.log", 'r');
if ($fp) {
        while (!feof($fp)) {
        if (($buf = fgets($fp, 4096)) !== false) {
            echo $buf;
        }
    }
        fclose($fp);
}
?>

The above example will output:

K2HASH attribute libraries:  K2H ATTR BUILTIN

See Also

K2hash::enableTransaction K2hash Class K2hash::getAttrs