k2hpx_find_get_key k2hash Functions k2hpx_find_get_value

k2hpx_find_get_subkeys

Gets keys using the k2hash file handle to search for keys with linked with each key

Description

array k2hpx_find_get_subkeys ( mixed $findhandle_res )

Gets keys using the k2hash file handle to search for keys with linked with each key.

Parameters

Return Values

Returns an array of keys that is lnked with each keys.

Examples

<?php
$handle = k2hpx_open_mem();
k2hpx_set_value($handle, "test1", "value1");
k2hpx_set_value($handle, "subkey1", "sub-value1");
k2hpx_add_subkey($handle, "test1", "subkey1");
$findhandle = k2hpx_find_first($handle);
var_dump($findhandle);
var_dump(k2hpx_find_get_subkeys($findhandle));
k2hpx_find_free($findhandle);
k2hpx_close($handle);
?>

The above example will output:

resource(5) of type (k2hfindhandle)
array(1) {
  [0]=>
  string(7) "subkey1"
}

See Also

k2hpx_find_get_key k2hash Functions k2hpx_find_get_value