<a target="_blank"></a>
使用classname::class可以獲得”完全限定類名”(fully qualified class name)
password hashing api的函數:password_get_info(), password_hash(),password_needs_rehash(),password_verify()
php core還新增了array_column(),boolval(),json_last_error_msg(),cli_get_process_title()等函數。
此外還新增一些有用的擴充函數/方法:
mysqli
mysqli_begin_transaction()
mysqli_release_savepoint()
mysqli_savepoint()
intl
intldateformatter::formatobject()
intldateformatter::getcalendarobject()
intldateformatter::gettimezone()
intldateformatter::settimezone()
curl
對比datetime與datetimeimmutable的一個簡單例子:
不再支援windows xp和 windows server 2003
擴充mysql過期,需使用mysqli或pdo_mysql
preg_replace /e 修飾符過期
删除logo guids
intl擴充的一些方法/函數過期
intldateformatter::settimezoneid()和datefmt_set_timezone_id()現在已經過期.可以分别使用intldateformatter::settimezone()和datefmt_set_timezone().
mcrypt擴充的一些函數過期
mcrypt_cbc(),mcrypt_cfb(),mcrypt_ecb(),mcrypt_ofb()等函數過期
<b>原文釋出時間為:2013-07-05</b>
<b></b>
<b>本文來自雲栖社群合作夥伴“linux中國”</b>