Menu Samaritan's Purse

CURL_ESCAPE

URL encodes the given string

SYNTAX

curl_escape ( resource $ch , string $str ) : string

PARAMETERS

ch

A cURL handle returned by curl_init().

str

The string to be encoded.

RETURN

Returns escaped string or FALSE on failure.

EXAMPLES

Hofbräuhaus / München
Hofbr%C3%A4uhaus%20%2F%20M%C3%BCnchen

PHP