K2hash::getAttrValue K2hash Class K2hash::getIterator

K2hash::getAttrVersionInfos

Prints the attribute library version

Description

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

Prints the attribute library version.

Parameters

Return Values

Returns true on success or false on failure.

Examples

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

$fp = fopen("/tmp/k2hash_attrversion_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::getAttrValue K2hash Class K2hash::getIterator