Skip to main content
Translates a string into the application/x-www-form-urlencoded format. This functions is supported from v3.2.

Syntax

Parameters

  • str: the string to encode. If str is not a string, this function will try implicit cast first.

Return value

Returns an encoded string compliant with the application/x-www-form-urlencoded format.

Examples