K2hKeyQueue Class K2hKeyQueue::count

K2hKeyQueue::__construct

Creates a K2hKeyQueue instance

Description

public K2hKeyQueue::__construct ( mixed $handle_res [, bool $is_fifo [, string $prefix ]] )

Creates a K2hKeyQueue instance.

Parameters

Examples

<?php
$handle = k2hpx_open_mem();
$k2hkeyqueue = new K2hKeyQueue($handle, true, "test_queue_");
var_dump($k2hkeyqueue);
unset($k2hkeyqueue);
k2hpx_close($handle);
?>

The above example will output:

object(K2hKeyQueue)#1 (0) {
}

See Also

K2hKeyQueue Class K2hKeyQueue::count