# PHP 7.3 新特性

### 更多灵活的 Heredoc、 Nowdoc 语法

The closing marker for doc strings is no longer required to be followed by a semicolon or newline. Additionally the closing marker may be indented, in which case the indentation will be stripped from all lines in the doc string.

### Instanceof 操作可接受 Literals

instanceof now allows literals as the first operand, in which case the result is always FALSE.

### Argon2id Support

The –with-password-argon2[=dir] configure argument now provides support for both Argon2i and Argon2id hashes in the password_hash()password_verify()password_get_info(), and password_needs_rehash() functions. Passwords may be hashed and verified using the PASSWORD_ARGON2ID constant. Support for both Argon2i and Argon2id in the password_*() functions now requires PHP be linked against libargon2 reference library ≥ 20161029.

### FastCGI 进程管理

FPM 中加入了新的自定义选项:

1. log_limit

This global option can be used for setting the log limit for the logged line which allows to log messages longer than 1024 characters without wrapping. It also fixes various wrapping issues.

1. log_buffering

This global option allows an experimental logging without extra buffering.

1. decorate_workers_output

This pool option allows to disable the output decoration for workers output when catch_workers_output is enabled.

### BC 数学函数

bcscale() can now also be used as getter to retrieve the current scale in use.

bcscale — 设置所有 bc 数学函数的默认小数点保留位数

### 轻量级目录访问协议

support for LDAP Controls has been added to the LDAP querying functions and ldap_parse_result():

### 多字节字符编码函数

#### 支持 (更加) 完整的大小写转换

The different casing mapping and folding modes are available through mb_convert_case()

• MB_CASE_LOWER (used by mb_strtolower())
• MB_CASE_UPPER (used by mb_strtoupper())
• MB_CASE_TITLE
• MB_CASE_FOLD
• MB_CASE_LOWER_SIMPLE
• MB_CASE_UPPER_SIMPLE
• MB_CASE_TITLE_SIMPLE
• MB_CASE_FOLD_SIMPLE (used by case-insensitive operations)

Only unconditional, language agnostic full case-mapping is performed.

#### MB_CASE_TITLE 模式, 执行首字母转换

mb_convert_case() 通过 MB_CASE_TITLE 模式, 执行首字母转换. 另外提供逗号和引号的处理.

#### 支持长字符串

Multibyte String Functions 目前支持最大字符长度 2G.

#### 性能提升

Multibyte String 性能明显且全面提升. The largest improvements are in case conversion functions.

#### Named Captures Support

The mb_ereg_* functions now support named captures. Matching functions like mb_ereg() will now return named captures both using their group number and their name, similar to PCRE:

Additionally, mb_ereg_replace() now supports the \k<> and \k''

notations to reference named captures in the replacement string:

\k<> and \k'' can also be used for numbered references, which also works with group numbers greater than 9.

### 新增加的函数

1. 数组操作函数

1. list 函数

1. json throw on error decode 异常可以抛出错误

1. 增加是否可计数的判断 count

via: php.net

Hello world!