protected function sendToRandomConnection($command)
    {
        $this->connect();

        $args = array();
        if (func_num_args() > 1) {
            $args = func_get_args();
            array_shift($args);
        }

        $i = $this->lastConnection = array_rand($this->connections);

        return call_user_func_array(array($this->connections[$i], $command), $args);
    }
protected function sendToRandomConnection($command)
    {
        $this->connect();

        $args = array();
        if (func_num_args() > 1) {
            $args = func_get_args();
            array_shift($args);
        }

        $i = $this->lastConnection = array_rand($this->connections);

        return call_user_func_array(array($this->connections[$i], $command), $args);
    }
protected function sendToRandomConnection ( $ command ) { $ this -> connect ( ) ; $ args = array ( ) ; if ( func_num_args ( ) > 1 ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; } $ i = $ this -> lastConnection = array_rand ( $ this -> connections ) ; return call_user_func_array ( array ( $ this -> connections [ $ i ] , $ command ) , $ args ) ; }
Sends the command to a random connection in the pool
Sends the command to a random connection in the pool