Esempio 3. Receiving a message from a subscription
In this example we show how to receive a message from a subscription id.
<?php $msg = $conn->receive($subscriptionName);
if (!$msg) { // The receive failed! echo "Receive failed ($conn->errno) $conn->error"; } ?>
|
Please note that $subscriptionName is a subscription id returned from an earlier subscribe call.