|
Zookeeper::getChildrenLists the children of a node synchronously Description
public
array Zookeeper::getChildren(string
$path, callable $watcher_cb = null)Parameters
Return ValuesReturns an array with children paths on success, and false on failure. Errors/ExceptionsThis method emits PHP error/warning when parameters count or types are wrong or fail to list children of a node. Caution
Since version 0.3.0, this method emits ZookeeperException and it's derivatives. ExamplesExample #1 Zookeeper::getChildren example Lists children of a node. The above example will output:
array(1) {
[0]=>
string(6) "config"
}
See Also
|