public function getWebSrvUserGroup($username = null) {
		$result = '';
		if ($this->isOsWindows() || empty($username)) {
			return $result;
		}

		$cmd = 'groups ' . $username . ' | head -1 | cut -d\  -f1 2>/dev/null';
		$output = [];
		$exitCode = -1;
		exec($cmd, $output, $exitCode);
		if (($exitCode !== 0) || (count($output) < 1)) {
			return $result;
		}

		$result = array_shift($output);

		return $result;
	}
public function getWebSrvUserGroup($username = null) {
		$result = '';
		if ($this->isOsWindows() || empty($username)) {
			return $result;
		}

		$cmd = 'groups ' . $username . ' | head -1 | cut -d\  -f1 2>/dev/null';
		$output = [];
		$exitCode = -1;
		exec($cmd, $output, $exitCode);
		if (($exitCode !== 0) || (count($output) < 1)) {
			return $result;
		}

		$result = array_shift($output);

		return $result;
	}
public function getWebSrvUserGroup ( $ username = null ) { $ result = '' ; if ( $ this -> isOsWindows ( ) || empty ( $ username ) ) { return $ result ; } $ cmd = 'groups ' . $ username . ' | head -1 | cut -d\  -f1 2>/dev/null' ; $ output = [ ] ; $ exitCode = - 1 ; exec ( $ cmd , $ output , $ exitCode ) ; if ( ( $ exitCode !== 0 ) || ( count ( $ output ) < 1 ) ) { return $ result ; } $ result = array_shift ( $ output ) ; return $ result ; }
Return group of user.

@param string $username Username for retrieving group.
@return string Return group of user
Return group of user .