PHP URL Functions

EditRocket provides the following information on URL functions in the PHP source code builder.

string base64_decode ( string $data [, bool $strict ] ) - Decodes a base64 encoded data.

string base64_encode ( string $data ) - Encodes the given data with base64.

array get_headers ( string $url [, int $format ] ) - get_headers() returns an array with the headers sent by the server in response to a HTTP request.

array get_meta_tags ( string $filename [, bool $use_include_path ] ) - Opens filename and parses it line by line for tags in the file. The parsing stops at .

string http_build_query ( array $formdata [, string $numeric_prefix [, string $arg_separator ]] ) - Generates a URL-encoded query string from the associative (or indexed) array provided.

mixed parse_url ( string $url [, int $component ] ) - This function parses a URL and returns an associative array containing any of the various components of the URL that are present.

string rawurldecode ( string $str ) - Returns a string in which the sequences with percent (%) signs followed by two hex digits have been replaced with literal characters.

string rawurlencode ( string $str ) -

string urldecode ( string $str ) - Decodes any %## encoding in the given string.

string urlencode ( string $str ) - This function is convenient when encoding a string to be used in a query part of a URL, as a convenient way to pass variables to the next page.