compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (13)

View Page History
$servers = array("http://server1:8091", "http://server2:8091");

function my_couchbase_connect($servers) {
do {
if(empty($servers)) {
echo "no suitable server found";
return false;
// throw
}
$server = array_pop($servers);
$cb = new Couchbase($server);
$cb = couchbase_connect($server);
} while(!$cb);

// $cb is now usable.
return $cb;
}
{code}