ListMessages Method
Gets messages from the queue.
Object Oriented Interface
public function doListMessages($queueid);
Procedural Interface
inamazon_sqs_do_listmessages($res, $queueid);
Remarks
This method retrieves messages from the queue specified by QueueId, and fires a Message event for each message it receives. The messages may also be accessed using the property Messages.
If VisibilityTimeout is specified it is updated for the messages, otherwise the default timeout of the queue used. Also only one message is retrieved by default, this behavior may be modified by MaxMessages.