Skip to content

Instantly share code, notes, and snippets.

@phillyqueso
Created December 13, 2011 16:33
Show Gist options
  • Save phillyqueso/1472804 to your computer and use it in GitHub Desktop.
Save phillyqueso/1472804 to your computer and use it in GitHub Desktop.
<?php
$queue = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_REQ, "MySock1");
$queue->connect("tcp://127.0.0.1:5555");
$res = $queue->send("test")->recv();
echo "got ".$res;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment