src/Zeropingheroes/SteamBrowserProtocol/SteamBrowserProtocol.php
public function connectToServer($address, $options = array())
	{
		$parameters = NULL;

		if ( array_key_exists('port', $options) )
		{
			$parameters = ':'.$options['port'];
		}
		if ( array_key_exists('password', $options) )
		{
			$parameters .= '/'.$options['password'];
		}		
		return $this->protocol.'connect/'.$address.$parameters;
	}
public function connectToServer($address, $options = array())
	{
		$parameters = NULL;

		if ( array_key_exists('port', $options) )
		{
			$parameters = ':'.$options['port'];
		}
		if ( array_key_exists('password', $options) )
		{
			$parameters .= '/'.$options['password'];
		}		
		return $this->protocol.'connect/'.$address.$parameters;
	}
public function connectToServer ( $ address , $ options = array ( ) ) { $ parameters = NULL ; if ( array_key_exists ( 'port' , $ options ) ) { $ parameters = ':' . $ options [ 'port' ] ; } if ( array_key_exists ( 'password' , $ options ) ) { $ parameters .= '/' . $ options [ 'password' ] ; } return $ this -> protocol . 'connect/' . $ address . $ parameters ; }
Generates a link to connecto the specified server
@param  string   $address Server IP or hostname
@param  array   $options Server port and password
@return string
Generates a link to connecto the specified server