title: Get all messages in SQS queue using AWS SDK for PHP
body: <p>I am trying to retrieve all the messages in the queue using the <code>AWS PHP SDK</code>.</p>
  
  <p>Earlier there used to be a <code>get_queue_size()</code> method to get the queue size and then I would iterate through the loop to get all the messages.</p>
  
  <p>In the newest SDK I don't see such a method. <a href="http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Sqs.SqsClient.html" rel="nofollow">Link</a></p>
  
  <p>Can someone tell me how I can receive all the messages in the queue using the latest SDK for PHP ?</p>