URL Functions
簡介
Dealing with URL strings: encoding, decoding and parsing.
需求
要編譯本擴充功能無需外部函式庫。
安裝
本擴充功能作為 PHP 核心的一部分,無需安裝即可使用。
執行時期設定
本擴充功能在 php.ini 中未定義任何設定選項。
資源類型
本擴充功能未定義任何資源類型。
預設常數
以下常數由擴充功能定義,因此只有在擴充功能被編譯到 PHP 中,或者在執行時被動態載入後才有效。
The following constants are meant to be used with parse_url() and are available since PHP 5.1.2.
Table of Contents
- base64_decode — Decodes data encoded with MIME base64
- base64_encode — Encodes data with MIME base64
- get_headers — Fetches all the headers sent by the server in response to a HTTP request
- get_meta_tags — Extracts all meta tag content attributes from a file and returns an array
- http_build_query — Generate URL-encoded query string
- parse_url — Parse a URL and return its components
- rawurldecode — Decode URL-encoded strings
- rawurlencode — URL-encode according to RFC 1738
- urldecode — Decodes URL-encoded string
- urlencode — URL-encodes string