Function __global->urlencode

Definitions

sources_custom/phpstub.php

  • URL-encodes string. Used for GET-parameter encoding ONLY.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$str string No No required parameter N/A N/A The pure string to URL encode

Returns

  • URL encoded string
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * URL-encodes string. Used for GET-parameter encoding ONLY.
 *
 * @param  string $str The pure string to URL encode
 * @return string URL encoded string
 */

function urlencode(string $str) : string