K2hQueue::pop K2hQueue Class K2hQueue::read

K2hQueue::push

Adds a value to the K2hQueue

Description

 public bool K2hQueue::push ( string $datavalue [, string $pass [, int $expire ]] )

Adds a value to the K2hQueue.

Parameters

Return Values

Returns true on success or false on failure.

Examples

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

The above example will output:

bool(true)
string(16) "test_queue_value"

See Also

K2hQueue::pop K2hQueue Class K2hQueue::read