K2hQueue::isEmpty K2hQueue Class K2hQueue::push

K2hQueue::pop

Removes and returns the removed element from the K2hQueue

Description

 public stringfalseK2hQueue::pop ([ string $pass ] )

Removes and gets the removed element from the K2hQueue.

Parameters

Return Values

Returns a value.

Examples

<?php
$handle = k2hpx_open_mem();
$k2hqueue = new K2hQueue($handle, true, "test_queue_");
$k2hqueue->push("test_queue_value");
var_dump($k2hqueue->pop());
unset($k2hqueue);
k2hpx_close($handle);
?>

The above example will output:

array(2) {
  [0]=>
  string(16) "test_queue_value"
}

See Also

K2hQueue::isEmpty K2hQueue Class K2hQueue::push