Returns the approximate number of messages in the queue.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The queue URL to perform the action on. Retrieved when the queue is first created. |
Returns
Type |
Description |
---|---|
The Approximate number of messages in the queue as an integer. If the queue doesn’t exist, it returns the entire |
Examples
Get the (approximate) number of messages in the queue.
// Get queue size $sqs = new AmazonSQS(); $response = $sqs->get_queue_size('example-queue'); // Success? var_dump($response);
Source
Method defined in services/sqs.class.php | Toggle source view (13 lines) | View on GitHub