src/ACFProInstaller/Plugin.php
protected function addParameterToUrl($url, $parameter, $value)
    {
        $cleanUrl = $this->removeParameterFromUrl($url, $parameter);
        $urlParameter = '&' . $parameter . '=' . urlencode($value);

        return $cleanUrl .= $urlParameter;
    }
protected function addParameterToUrl($url, $parameter, $value)
    {
        $cleanUrl = $this->removeParameterFromUrl($url, $parameter);
        $urlParameter = '&' . $parameter . '=' . urlencode($value);

        return $cleanUrl .= $urlParameter;
    }
protected function addParameterToUrl ( $ url , $ parameter , $ value ) { $ cleanUrl = $ this -> removeParameterFromUrl ( $ url , $ parameter ) ; $ urlParameter = '&' . $ parameter . '=' . urlencode ( $ value ) ; return $ cleanUrl .= $ urlParameter ; }
Add a parameter to the given url

Adds the given parameter at the end of the given url. It only works with
urls that already have parameters (e.g. test.com?p=true) because it
uses & as a separation character.

@access protected
@param string $url The url that should be appended
@param string $parameter The name of the parameter
@param string $value The value of the parameter
@return string The url appended with &parameter=value
Add a parameter to the given url