F.38. URL

FunctionReturnsDescription
http_build_query(mixed formdata [, string prefix])
stringGenerates a form-encoded query string from an associative array or object.
parse_url(string url)
arrayParses a URLand returns its components.
get_headers(string url)
arrayFetches all the headers sent by the server in response to an HTTP request.
urlencode(string str)
stringURL-encodes all non alphanumeric characters except -_.
urldecode(string str)
stringDecodes URL-encoded string.
rawurlencode(string str)
stringURL-encodes all non alphanumeric characters.
rawurldecode(string str)
stringDecodes URL-encoded string.
base64_encode(string str)
stringEncodes string using MIME base64 algorithm.
base64_decode(string str)
stringDecodes string using MIME base64 algorithm.
get_meta_tags(string filename [, bool use_include_path])
arrayExtracts all meta tag content attributes from a file and returns an array.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.