PHP 教程 在线

2728PHP Extension openssl.

PHP Extension openssl.

This extension binds functions of » OpenSSL library for symmetric and asymmetric encryption and decryption, PBKDF2, PKCS7, PKCS12, X509 and other crypto operations. In addition to that it provides implementation of TLS streams.

OpenSSL offers many features that this module currently doesn't support. Some of these may be added in the future.

PHP7.x 默认就不再附带 mcrypt 扩展,mcrypt 将被 openssl_* 一族函数所替代

php.net/manual/en/book.openssl.php

2727PHP Extension xmlwriter.

PHP Extension xmlwriter.

This is the XMLWriter extension. It wraps the libxml xmlWriter API.

This extension represents a writer that provides a non-cached, forward-only means of generating streams or files containing XML data.

This extension can be used in an object oriented style or a procedural one. Every method documented describes the alternative procedural call.

php.net/manual/zh/intro.xmlwriter.php

2726PHP Extension pcre.

PHP Extension pcre.

正则表达式(兼容 Perl)

PCRE(Perl Compatible Regular Expressions)是一个Perl库,包括 perl 兼容的正则表达式库

执行正规表达式模式匹配时用与Perl 5同样的语法和语义是很有用的

表达式必须用分隔符闭合,比如一个正斜杠(/)

分隔符可以使任意非字母数字,除反斜杠(\)和空字节之外的非空白 ascii 字符

如果分隔符 在表达式中使用,需要使用反斜线进行转义

可以使用 perl 样式的()、 {}、 [] 以及 <> 作为分隔符

结束分隔符后面可以紧跟模式修饰符来影响匹配

PHP也支持使用 POSIX 扩展正则表达式函数 的 POSIX 扩展语法的正则表达式

php.net/manual/zh/reference.pcre.pattern.syntax.php

2725PHP Extension json.

PHP Extension json.

实现了JavaScript对象符号(JSON) 数据转换格式

JSON 扩展默认内置并编译进了 PHP

JSON 函数

json_decode — 对 JSON 格式的字符串进行解码

json_encode — 对变量进行 JSON 编码

json_last_error_msg — Returns the error string of the last json_encode() or json_decode() call

json_last_error — 返回最后发生的错误

facesoho.com/php/php-json.html

php.net/manual/zh/book.json.php

2724PHP Extension gd.

PHP Extension gd.

GD指的是Graphic Device

PHP的GD库用来处理图形的扩展库,通过GD库提供的一系列API,对图像进行处理

创建和处理包括 GIF, PNG, JPEG, WBMP 及 XPM 多种格式的图像。

可以直接将图像数据流输出到浏览器

需要连带 GD 库一起编译 PHP

图像函数来获取下列格式图像的大小: JPEG, GIF, PNG, SWF, TIFF 和 JPEG2000。

exif 相关的函数不需要 GD 库亦可使用

php.net/manual/zh/intro.image.php