msg_receive

msg_receive

(PHP 4 >= 4.3.0, PHP 5, PHP 7)

msg_receiveReceive a message from a message queue

Description

bool msg_receive ( resource $queue , int $desiredmsgtype , int &$msgtype , int $maxsize , mixed &$message [, bool $unserialize = true [, int $flags = 0 [, int &$errorcode ]]] )

msg_receive() will receive the first message from the specified queue of the type specified by desiredmsgtype.