k2hpx_q_handle
Gets the K2hQueue file handle
Description
mixed k2hpx_q_handle ( mixed $handle_res [, bool $is_filo [, stringnull $prefix ]] )
Gets the K2hQueue handle.
Parameters
- handle_res
Specifies the k2h file handle that k2hpx_open returns. - is_filo
Specifies true if the order of the K2hQueue is FIFO, otherwise false. - prefix
Specifies the prefix of the K2hQueue.
Return Values
Returns the K2hQueue file handle.
Examples
- Example 1 - Gets the K2hQueue file handle
<?php
$handle = k2hpx_open_mem();
$qhandle = k2hpx_q_handle($handle, true, "test_queue_");
var_dump($qhandle);
k2hpx_q_free($qhandle);
k2hpx_close($handle);
?>
The above example will output:
resource(5) of type (k2hqhandle)
See Also
- K2hQueue::__construct - Creates a K2hQueue instance