. * * * The author of this software is Mashape, Inc. * For any question or feedback please contact us at: support@mashape.com * */ class UrlUtils { public static function buildUrlWithQueryString($url, $parameters) { foreach ($parameters as $paramKey => $paramValue) { $delimiter = (strpos($url, "?") === false) ? "?" : "&"; $url .= $delimiter . $paramKey . "=" . urlencode($paramValue); } return $url; } } ?>