bind("tcp://127.0.0.1:5555"); /* Loop receiving and echoing back */ while ($message = $server->recv()) { echo "Got message: $message\n"; /* echo back the message */ $server->send($message); }