Index: en/reference/amqp/amqpqueue/ack.xml
===================================================================
--- en/reference/amqp/amqpqueue/ack.xml	(revision 315484)
+++ en/reference/amqp/amqpqueue/ack.xml	(working copy)
@@ -50,6 +50,75 @@
    &return.success;
   </para>
  </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>AMQPQueue::ack</function> example with <methodname>AMQPQueue::get</methodname></title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+/* Create a connection using all default credentials: */
+$connection = new AMQPConnection();
+$connection->connect();
+
+/* create a queue object */
+$queue = new AMQPQueue($connection);
+
+//declare the queue
+$queue->declare('myqueue');
+
+//get the next message, but don't mark it as delivered
+$message = $queue->get(AMQP_NOACK);
+
+echo $message['msg'];
+
+//acknowledge the message as received
+$queue->ack($message['delivery_tag']);
+
+?>
+]]>
+    </programlisting>
+   </example>
+   <example>
+    <title><function>AMQPQueue::ack</function> example with <methodname>AMQPQueue::consume</methodname></title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+/* Create a connection using all default credentials: */
+$connection = new AMQPConnection();
+$connection->connect();
+
+/* create a queue object */
+$queue = new AMQPQueue($connection);
+
+//declare the queue
+$queue->declare('myqueue');
+
+$options = array(
+ 'min' => 1,
+ 'max' => 10,
+ 'ack' => false
+);
+
+//get the messages, but don't mark them as delivered
+$messages = $queue->consume($options);
+
+foreach ($messages as $message) {
+ echo $message['message_body'];
+ //acknowledge the message as received
+ $queue->ack($message['delivery_tag']);
+}
+
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
 </refentry>
 
 <!-- Keep this comment at the end of the file
Index: en/reference/amqp/amqpqueue/get.xml
===================================================================
--- en/reference/amqp/amqpqueue/get.xml	(revision 315484)
+++ en/reference/amqp/amqpqueue/get.xml	(working copy)
@@ -48,6 +48,37 @@
   </para>
  </refsect1>
 
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>AMQPQueue::get</function> example</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+/* Create a connection using all default credentials: */
+$connection = new AMQPConnection();
+$connection->connect();
+
+/* create a queue object */
+$queue = new AMQPQueue($connection);
+
+//declare the queue
+$queue->declare('myqueue');
+
+//get the next message
+$message = $queue->get();
+
+echo $message['msg'];
+
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
 </refentry>
 
 <!-- Keep this comment at the end of the file
