k2hpx_find_get_value k2hash Functions k2hpx_get_attr_value

k2hpx_find_next

Advances the internal pointer of the k2hash file handle to search for keys

Description

mixed k2hpx_find_next ( mixed $findhandle_res )

Advances the internal pointer of the k2hash file handle to search for keys.

Parameters

Return Values

Returns the pointer to the next key.

Examples

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

The above example will output:

resource(5) of type (k2hfindhandle)
string(5) "test1"
resource(6) of type (k2hfindhandle)
string(5) "test2"

See Also

k2hpx_find_get_value k2hash Functions k2hpx_get_attr_value