← All docs

curl_escape()

URL-encodes a string with the given cURL handle.

curl_escape()

function curl_escape(CurlHandle $handle, string $string): string

URL-encodes a string with the given cURL handle.

Parameters:

  • $handle (CurlHandle)
  • $string (string)

Returns: string

Availability

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

Internals

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