public function addServer() {
		$argsRaw = func_get_args();
		
		if (isset($argsRaw[0]) && is_array($argsRaw[0])) {
			$args = self::$defaultServerArgs;
			
			foreach ($argsRaw[0] as $param => $value) {
				if (isset(self::$serverParamsToArgs[$param])) {
					$args[self::$serverParamsToArgs[$param]] = $value;
				}
			}
		} else {
			$args = $argsRaw + self::$defaultServerArgs;
		}

		$result = call_user_func_array([$this->getClient(), 'addServer'], $args);
		
		if ($result === false) {
			throw new ServerParamsError('Unable to add the server to the memcache connection pool');
		} else {
			$this->connectionCheckStatus = true;
		}
	}
public function addServer() {
		$argsRaw = func_get_args();
		
		if (isset($argsRaw[0]) && is_array($argsRaw[0])) {
			$args = self::$defaultServerArgs;
			
			foreach ($argsRaw[0] as $param => $value) {
				if (isset(self::$serverParamsToArgs[$param])) {
					$args[self::$serverParamsToArgs[$param]] = $value;
				}
			}
		} else {
			$args = $argsRaw + self::$defaultServerArgs;
		}

		$result = call_user_func_array([$this->getClient(), 'addServer'], $args);
		
		if ($result === false) {
			throw new ServerParamsError('Unable to add the server to the memcache connection pool');
		} else {
			$this->connectionCheckStatus = true;
		}
	}
public function addServer ( ) { $ argsRaw = func_get_args ( ) ; if ( isset ( $ argsRaw [ 0 ] ) && is_array ( $ argsRaw [ 0 ] ) ) { $ args = self :: $ defaultServerArgs ; foreach ( $ argsRaw [ 0 ] as $ param => $ value ) { if ( isset ( self :: $ serverParamsToArgs [ $ param ] ) ) { $ args [ self :: $ serverParamsToArgs [ $ param ] ] = $ value ; } } } else { $ args = $ argsRaw + self :: $ defaultServerArgs ; } $ result = call_user_func_array ( [ $ this -> getClient ( ) , 'addServer' ] , $ args ) ; if ( $ result === false ) { throw new ServerParamsError ( 'Unable to add the server to the memcache connection pool' ) ; } else { $ this -> connectionCheckStatus = true ; } }
Add the server to the client

Parameters can be passed as a separate args of the method.
Or as an array with the keys as the params names:
<ul>
<li>host</li>
<li>port</li>
<li>persistent</li>
<li>weight</li>
<li>timeout</li>
<li>retry_interval</li>
</ul>

All params are not required.
Without parameters at all will be used defaults.

@param  string $host | array $params Host name or an address or a socket name | array with params
@param  int    $port                 Port
@param  bool   $persistent           Persistent connection
@param  int    $weight               Server weight
@param  int    $timeout              Server request timeout in seconds
@param  int    $retryInterval        Server retry timeout in seconds
@throws ServerParamsError
Add the server to the client