We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Zookeeper::connect - Connect to Zookeeper cluster
public void Zookeeper::connect( [$host = '' [, $watcher_cb = null [, $recv_timeout = 10000 ]]] )
Connect to Zookeeper cluster
host
CSV list of host:port values (e.g. "host1:2181,host2:2181")
watcher_cb
TODO:
recv_timeout
No value is returned.
<?php $zookeeper = new Zookeeper(); $zookeeper->connect('localhost:2181'); ?>