$url = 'https://example.com'; $params = array('param1' => 'value1', 'param2' => 'value2'); $newUrl = ilUtil::appendUrlParameterString($url, $params);In this example, we first define the base URL string as 'https://example.com'. We then create an array of parameters we want to append to the URL string, such as 'param1' with the value of 'value1' and 'param2' with the value of 'value2'. Finally, we use the ilUtil appendUrlParameterString function to append the given parameters to the URL string and store the resulting URL in the $newUrl variable. This function is part of the ILIAS (Integrated Learning Management System) PHP library, which is a package for building customized web-based learning management systems.