In this example the SAM_CORRELID option is used to specify a correlation
id string to be used to identify the message to receive. A wait timeout
of 10 seconds is also specified.
<?php
$msg = $conn->receive('queue://receive/test', array(SAM_CORRELID => $token, SAM_WAIT => 10000));
?>