Method
QueueInterface::tryPeek
Copies the first value of the queue into $value, without removing it, and returns whether there was one.
Description#
public QueueInterface::tryPeek(
mixed &$value
): boolParameters#
- $value mixed
Return values#
False if the queue was empty bool
See also#
QueueInterface::tryDequeueTakes the first value off the queue into$value, and returns whether there was one.