URL_ENCODE
Function
Performs URL encoding on a string.
Parameters
- str: string type, the string to encode
Returns
- string type, returns the URL-encoded string.
- Special characters are converted to
%XXformat. - Spaces are encoded as
+.
Examples
Notes
- This is the inverse of the
URL_DECODEfunction. - Spaces are encoded as
+. - Supports standard URL percent-encoding.
- Commonly used for constructing URL query parameters.
