k2hpx_enable_transaction k2hash Functions k2hpx_find_free

k2hpx_find_first

Gets the k2hash file handle to search for the key

Description

mixed k2hpx_find_first ( mixed $handle_res [, stringnull $key ] )

Gets the k2hash file handle to searchf for the key.

Parameters

Return Values

Returns the k2hash file handle to search for the key.

Examples

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

The above example will output:

resource(5) of type (k2hfindhandle)

See Also

k2hpx_enable_transaction k2hash Functions k2hpx_find_free