PHP 教程 在线

2733PHP Extension curl.

PHP Extension curl.

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.

php.net/manual/en/book.curl.php

2732PHP Extension iconv.

PHP Extension iconv.

iconv — Convert string to requested character encoding

包含了 iconv 字符集转换功能的接口。

可以将一个本地字符集表达的字符串转换成另一种字符集,比如可以是 Unicode 字符集

支持的字符集基于系统上 iconv 的实现

某些系统上 iconv 函数可能无法以预期的那样工作

在这种情况下,安装 » GNU libiconv 库将会是个不错的主意

它最终将会产生更一致的结果。

php.net/manual/zh/book.iconv.php

2731PHP Extension mbstring.

PHP Extension mbstring.

处理 PHP 中的多字节编码

一字节仅能够表示 256 种不同的值,即 2 的八次方

多字节字符编码方案是为了在基于字节的常规编码系统中表达超过 256 个字符

操作(trim、split、splice 等等)多字节编码的字符串时,

两个或多个连续字节可能只表达了一个字符,需要使用专门的函数。 否则不能检测多字节字符串的函数应用到这个字符串的时候,以乱码字符串结尾,丢失它原来的意思。

mbstring 提供针对多字节字符串的函数

mbstring 字符编码之间相互进行编码转换

mbstring 基于 Unicode 的编码,类似 UTF-8、UCS-2 及诸多单字节的编码

php.net/manual/zh/book.mbstring.php

2730PHP Extension dom.

PHP Extension dom.

The DOM extension allows you to operate on XML documents through the DOM API with PHP.

facesoho.com/php/php-xml-dom.html

php.net/manual/en/book.dom.php

2729PHP Extension hash.

PHP Extension hash.

These functions are intended to work with » mhash. Mhash can be used to create checksums, message digests, message authentication codes, and more.

This is an interface to the mhash library. Mhash supports a wide variety of hash algorithms such as MD5, SHA1, GOST, and many others. For a complete list of supported hashes, refer to the constants page. The general rule is that you can access the hash algorithm from PHP with MHASH_hashname. For example, to access TIGER you use the PHP constant MHASH_TIGER.

php.net/manual/zh/book.mhash.php