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
Parameter type declaration
Return type declaration
Parameter type generalization
Trailing commas in list syntax
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.
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!