The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
The following constants are meant to be used with parse_url().
PHP_URL_SCHEME
(int)
PHP_URL_HOST
(int)
PHP_URL_PORT
(int)
PHP_URL_USER
(int)
PHP_URL_PASS
(int)
PHP_URL_PATH
(int)
PHP_URL_QUERY
(int)
PHP_URL_FRAGMENT
(int)
The following constants are meant to be used with http_build_query().
PHP_QUERY_RFC1738
(int)
application/x-www-form-urlencoded
media type, which
implies that spaces are encoded as plus (+
) signs.
PHP_QUERY_RFC3986
(int)
%20
).