Function __global->extend_url

Definitions

sources/urls.php

  • Extend a URL with additional parameter(s). Does not handle URL encoding of the appended parameter, which you should do first if applicable.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
&$url string Yes No required parameter N/A N/A The URL to append to (returned by reference)
$append string No No required parameter N/A N/A URL parameter(s) to append, with no leading or trailing ? or & characters

Preview

Code (PHP)

/**
 * Extend a URL with additional parameter(s). Does not handle URL encoding of the appended parameter, which you should do first if applicable.
 *
 * @param  string $url The URL to append to (returned by reference)
 * @param  string $append URL parameter(s) to append, with no leading or trailing ? or & characters
 */

function extend_url(string &$url, string $append)