WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/urlencode

REQUEST FOR DELETION — This page has been requested to be deleted from Codex.
string urlencode ( string $str )

This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.

Parameters

$str: The string to be encoded.

See more: http://php.net/urlencode