Home > Backend Development > PHP Tutorial > PHP7.2 new features

PHP7.2 new features

不言
Release: 2023-03-24 06:30:01
Original
1938 people have browsed it

The content of this article is about the new features of PHP7.2, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

  1. Parameter type declaration

  2. Return type declaration

  3. Parameter type generalization

  4. Trailing commas in list syntax

  5. Argon2 algorithm in password hashing
    Argon2 is a powerful hashing algorithm that won the championship in the 2015 Password Hash Algorithm Competition. PHP7.2 uses it as Bcrypt As a replacement for the algorithm, the new version of PHP introduces the PASSWORD_ARGON2I constant, which can be used in the password_* series of functions.

  6. Libsodium becomes a core component of PHP
    Libsodium is a cross-platform and cross-language library for encryption, decryption, signing, password hashing, etc.


The above is the detailed content of PHP7.2 new features. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template