← All docs

rawurlencode()

URL-encodes a string using RFC 3986 percent-encoding (no '+' for spaces).

rawurlencode()

function rawurlencode(string $string): string

URL-encodes a string using RFC 3986 percent-encoding (no ’+’ for spaces).

Parameters:

  • $string (string)

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how rawurlencode is implemented in the compiler, see the internals page.